Snapping Java Swing applications
Reinhard Pointner
reinhard.pointner at gmail.com
Tue May 17 22:30:19 UTC 2016
--devmode didn't make a difference. In --devmode, is it supposed to be able
to load libraries and fonts from the system?
I guess there's just some odd dependencies missing that are not declared
cause they're always just there on normal systems. I'll look into the
OpenJDK and see if I can find anything.
On 18 May 2016 at 04:29, Gustavo Niemeyer <gustavo at niemeyer.net> wrote:
> Hi Reinhard,
>
> Your snapcraft.yaml is very clean-looking. It must be an internal bug in
> one of the plugins, potentially the one handling the Java build itself.
>
> Will let the snapcraft folks chime in.
>
> You can workaround the confinement by installing the snap with the
> --devmode flag, so you get everything but the confinement story sorted.
>
> On Tue, May 17, 2016 at 3:10 PM, Reinhard Pointner <
> reinhard.pointner at gmail.com> wrote:
>
>> Hi snapcrafters!
>>
>> I've been trying to snap a Java Swing GUI application, but I'm stuck at
>> some missing dependencies (or missing snappy interfaces?) that make it
>> crash on startup.
>>
>> This is the console output that I get:
>>
>> (process:18465): Gtk-WARNING **: Locale not supported by C library.
>> Using the fallback 'C' locale.
>> Gtk-Message: Failed to load module "overlay-scrollbar"
>> Gtk-Message: Failed to load module "canberra-gtk-module"
>> java.lang.NullPointerException
>> at com.sun.java.swing.plaf.gtk.PangoFonts.lookupFont(PangoFonts.java:204)
>> at
>> com.sun.java.swing.plaf.gtk.GTKLookAndFeel.getGTKStyleFactory(GTKLookAndFeel.java:1603)
>> at
>> com.sun.java.swing.plaf.gtk.GTKLookAndFeel.loadStyles(GTKLookAndFeel.java:1567)
>> at
>> com.sun.java.swing.plaf.gtk.GTKLookAndFeel.initialize(GTKLookAndFeel.java:1452)
>> at net.filebot.Main.startUserInterface(Main.java:181)
>> at net.filebot.Main.lambda$main$0(Main.java:123)
>> May 18, 2016 2:14:33 AM java.util.prefs.FileSystemPreferences$1 run
>> WARNING: Couldn't create user preferences directory. User preferences are
>> unusable.
>> May 18, 2016 2:14:33 AM java.util.prefs.FileSystemPreferences$1 run
>> WARNING: java.io.IOException: No such file or directory
>>
>> The GTK warnings can probably be ignored, but somehow the Java Swing GTK
>> Look-and-Feel is looking for some system fonts that it can't find, and then
>> crashes because of that. Any ideas how to add the missing GTK
>> fonts/resources to my snap?
>>
>>
>>
>> Also, there's something fishy going on in the generated command-*.wrapper
>> ... $SNAP$SNAP$SNAP$SNAP$SNAP doesn't look right to me:
>>
>> export
>> LD_LIBRARY_PATH="$SNAP$SNAP$SNAP$SNAP$SNAP/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64:$SNAP$SNAP$SNAP$SNAP/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64:$SNAP$SNAP$SNAP/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64:$SNAP$SNAP/usr/lib/jvm/java-8-openjdk-amd64/bin/../lib/amd64/jli:$SNAP$SNAP/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/../lib/amd64/jli:$SNAP$SNAP/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64:$SNAP$SNAP/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/jli:$SNAP/usr/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu/pulseaudio:$LD_LIBRARY_PATH"
>>
>>
>> Here's my snapcraft.yaml:
>> https://github.com/filebot/filebot/tree/master/installer/snappy
>>
>>
>> Cheers,
>> Reinhard
>>
>> --
>> snappy-app-devel mailing list
>> snappy-app-devel at lists.ubuntu.com
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/snappy-app-devel
>>
>>
>
>
> --
>
> gustavo @ http://niemeyer.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snappy-app-devel/attachments/20160518/5b67dca8/attachment-0001.html>
More information about the snappy-app-devel
mailing list