Swing/AWT app crashes

Daniel Holbach daniel.holbach at canonical.com
Mon Jun 27 09:43:14 UTC 2016


Hello Alekseenko,

On 27.06.2016 10:00, Alekseenko Vasilii wrote:
> 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

thanks a lot for sharing your wrapper, it works great.

I just pushed a PR which makes use of it here:

  https://github.com/ubuntu/snappy-playpen/pull/122

Have a great day,
 Daniel





More information about the Snapcraft mailing list