Swing/AWT app crashes

Alekseenko Vasilii vasilisc777 at gmail.com
Mon Jun 27 08:00:49 UTC 2016


27.06.2016 10:51, Daniel Holbach пишет:
> Hello everybody,
>
> the OpenJDK demo in the Snappy Playpen has been known to crash:
>
>    https://github.com/ubuntu/snappy-playpen/tree/master/openjdk-demo
>
> Now somebody else brought up a similar issue here:
>
>
> http://askubuntu.com/questions/791853/snap-package-for-java-swing-and-awt-application-crashes-when-it-is-executed
>
> 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

---





More information about the Snapcraft mailing list