Creating an ubuntu snap package for archaeopteryx

34 views
Skip to first unread message

Redmar van den Berg

unread,
Jul 19, 2016, 2:58:24 PM7/19/16
to Archaeopteryx
Sorry if this gets posted twice, I tried posting yesterday but it never showed up

I am trying to create a snap package (http://snapcraft.io/) to make it easy to install archaeopteryx on ubuntu 16.04 and later. While the jar file runs fine in ubuntu, I can't get the snap to work. I was hoping you could help me understand the error messages I get when I try to start it.

Exception in thread "main" java.lang.ExceptionInInitializerError
        at org.forester.archaeopteryx.Configuration.<clinit>(Configuration.java:258)
        at org.forester.archaeopteryx.Archaeopteryx.main(Archaeopteryx.java:71)
Caused by: java.lang.NullPointerException
        at sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1264)
        at sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:219)
        at sun.awt.FontConfiguration.init(FontConfiguration.java:107)
        at sun.awt.X11FontManager.createFontConfiguration(X11FontManager.java:774)
        at sun.font.SunFontManager$2.run(SunFontManager.java:431)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.font.SunFontManager.<init>(SunFontManager.java:376)
        at sun.awt.FcFontManager.<init>(FcFontManager.java:35)
        at sun.awt.X11FontManager.<init>(X11FontManager.java:57)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at java.lang.Class.newInstance(Class.java:442)
        at sun.font.FontManagerFactory$1.run(FontManagerFactory.java:83)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74)
        at sun.java2d.SunGraphicsEnvironment.getFontManagerForSGE(SunGraphicsEnvironment.java:190)
        at sun.java2d.SunGraphicsEnvironment.getAvailableFontFamilyNames(SunGraphicsEnvironment.java:2
        at sun.java2d.SunGraphicsEnvironment.getAvailableFontFamilyNames(SunGraphicsEnvironment.java:2
        at org.forester.archaeopteryx.AptxUtil.<clinit>(AptxUtil.java:99)
        ... 2 more

Redmar van den Berg

unread,
Jul 19, 2016, 2:58:24 PM7/19/16
to Archaeopteryx
I've been trying to create a snap package (http://snapcraft.io/) to make it easy to install archaeopteryx on ubuntu, both for myself and others.

While the forester_1041.jar file runs fine on ubuntu 16.04 using openjdk-8-jre, I haven't had any success getting the snap package to work, and I was wondering if anyone here might have any idea whats going wrong.

I'm sure it's not a problem with archaeopteryx but something I am doing wrong, but I'm not well versed in java and I can't figure out what it is. So any feedback or ideas you might have will be very much appreciated.

$archaeopteryx
Exception in thread "main" java.lang.ExceptionInInitializerError
    at org.forester.archaeopteryx.Configuration.<clinit>(Configuration.java:258)
    at org.forester.archaeopteryx.Archaeopteryx.main(Archaeopteryx.java:71)
Caused by: java.lang.NullPointerException
    at sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1264)
    at sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:219)
    at sun.awt.FontConfiguration.init(FontConfiguration.java:107)
    at sun.awt.X11FontManager.createFontConfiguration(X11FontManager.java:774)
    at sun.font.SunFontManager$2.run(SunFontManager.java:431)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.font.SunFontManager.<init>(SunFontManager.java:376)
    at sun.awt.FcFontManager.<init>(FcFontManager.java:35)
    at sun.awt.X11FontManager.<init>(X11FontManager.java:57)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at java.lang.Class.newInstance(Class.java:442)
    at sun.font.FontManagerFactory$1.run(FontManagerFactory.java:83)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74)
    at sun.java2d.SunGraphicsEnvironment.getFontManagerForSGE(SunGraphicsEnvironment.java:190)
    at sun.java2d.SunGraphicsEnvironment.getAvailableFontFamilyNames(SunGraphicsEnvironment.java:224)
    at sun.java2d.SunGraphicsEnvironment.getAvailableFontFamilyNames(SunGraphicsEnvironment.java:252)
Reply all
Reply to author
Forward
0 new messages