Wow!<div>Thanks, I've been trying to figure that one out.</div><div>--</div><div>Matt<br><br>On Mon, Jun 27, 2016 at 4:00 AM, Alekseenko Vasilii <vasilisc777@gmail.com> wrote:<br>
<blockquote type="cite"><div class="plaintext" style="white-space: pre-wrap;">27.06.2016 10:51, Daniel Holbach пишет:
> Hello everybody,
>
> the OpenJDK demo in the Snappy Playpen has been known to crash:
>
> <a href="https://github.com/ubuntu/snappy-playpen/tree/master/openjdk-demo">https://github.com/ubuntu/snappy-playpen/tree/master/openjdk-demo</a>
>
> Now somebody else brought up a similar issue here:
>
>
> <a href="http://askubuntu.com/questions/791853/snap-package-for-java-swing-and-awt-application-crashes-when-it-is-executed">http://askubuntu.com/questions/791853/snap-package-for-java-swing-and-awt-application-crashes-when-it-is-executed</a>
>
> Do we know what needs to be done to fix the issue? Or if it can be
> worked around?
>
> Have a great day,
> Daniel
>
My first java app in snap - LanguageTool
standart wrapper call my run.sh
run.sh
#!/bin/sh
# Not good, needed for fontconfig
export XDG_DATA_HOME=$SNAP/usr/share
# Font Config
export FONTCONFIG_PATH=$SNAP/etc/fonts/config.d
export FONTCONFIG_FILE=$SNAP/etc/fonts/fonts.conf
export HOME=$SNAP_USER_DATA
java -jar -Duser.home=$SNAP_USER_DATA $SNAP/usr/bin/languagetool.jar
And JavaApp run successfully
---
<div>--
</div>Snapcraft mailing list
<a href="mailto:Snapcraft@lists.ubuntu.com">Snapcraft@lists.ubuntu.com</a>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft">https://lists.ubuntu.com/mailman/listinfo/snapcraft</a>
</div></blockquote></div>