Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Unable to run simple JavaFX on Linux

Veerendra S-OracleJun 3 2016 — edited Jun 3 2016

Hi,

    I am trying to run a simple JavaFX program on my Linux machine and it fails with a library issue. I packed the jar as a normal jar with manifest file.

    The command I use is /ade_autofs/gd29_3rdparty/nfsdo_generic/JDK7/MAIN/LINUX.X64/160404.1.7.0.101.0B014/jdk7/bin/java -cp .:/ade_autofs/gd29_3rdparty/nfsdo_generic/JDK7/MAIN/LINUX.X64/160404.1.7.0.101.0B014/jdk7/jre/lib/jfxrt.jar application.Main2

    Here is the exception trace:

--

Prism ES2 Error - nInitialize: glXChooseFBConfig failed

Exception in thread "main" java.lang.RuntimeException: java.lang.UnsatisfiedLinkError: /ade_autofs/gd29_3rdparty/nfsdo_generic/JDK7/MAIN/LINUX.X64/160404.1.7.0.101.0B014/jdk7/jre/lib/amd64/libglass.so: libgio-2.0.so.0: cannot open shared object file: No such file or directory

        at com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:284)

        at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:127)

        at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:163)

        at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:47)

        at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:115)

        at java.lang.Thread.run(Thread.java:745)

Caused by: java.lang.UnsatisfiedLinkError: /ade_autofs/gd29_3rdparty/nfsdo_generic/JDK7/MAIN/LINUX.X64/160404.1.7.0.101.0B014/jdk7/jre/lib/amd64/libglass.so: libgio-2.0.so.0: cannot open shared object file: No such file or directory

        at java.lang.ClassLoader$NativeLibrary.load(Native Method)

        at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1968)

        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1893)

        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1854)

        at java.lang.Runtime.load0(Runtime.java:795)

        at java.lang.System.load(System.java:1062)

        at com.sun.glass.utils.NativeLibLoader.loadLibraryFullPath(NativeLibLoader.java:200)

        at com.sun.glass.utils.NativeLibLoader.loadLibraryInternal(NativeLibLoader.java:88)

        at com.sun.glass.utils.NativeLibLoader.loadLibrary(NativeLibLoader.java:31)

        at com.sun.glass.ui.Application.loadNativeLibrary(Application.java:74)

        at com.sun.glass.ui.Application.loadNativeLibrary(Application.java:81)

        at com.sun.glass.ui.gtk.GtkPlatformFactory$1.run(GtkPlatformFactory.java:28)

        at com.sun.glass.ui.gtk.GtkPlatformFactory$1.run(GtkPlatformFactory.java:25)

        at java.security.AccessController.doPrivileged(Native Method)

        at com.sun.glass.ui.gtk.GtkPlatformFactory.<clinit>(GtkPlatformFactory.java:25)

        at java.lang.Class.forName0(Native Method)

        at java.lang.Class.forName(Class.java:195)

        at com.sun.glass.ui.PlatformFactory.getPlatformFactory(PlatformFactory.java:20)

        at com.sun.glass.ui.Application.Run(Application.java:104)

        at com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:274)

        ... 5 more

--

With regards,

Veerendra S.

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 1 2016
Added on Jun 3 2016
3 comments
6,228 views