Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8127019

UnsatisfiedLinkError - Can't load library: libglass.so

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • fx2.1
    • javafx

      Since JavaFX Developer Preview build 13, I can't run JavaFX applications b/c of the following error (app crashes on startup):

      Exception in thread "main" java.lang.RuntimeException: java.lang.UnsatisfiedLinkError: Can't load library: /mnt/stor/devel/JavaFXApp/build/i386/libglass.so
              at com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:277)
              at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:90)
              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:722)
      Caused by: java.lang.UnsatisfiedLinkError: Can't load library: /mnt/stor/devel/JavaFXApp/build/i386/libglass.so
              at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1828)
              at java.lang.Runtime.load0(Runtime.java:792)
              at java.lang.System.load(System.java:1059)
              at com.sun.glass.utils.NativeLibLoader.loadLibraryFullPath(NativeLibLoader.java:143)
              at com.sun.glass.utils.NativeLibLoader.loadLibraryInternal(NativeLibLoader.java:56)
              at com.sun.glass.utils.NativeLibLoader.loadLibrary(NativeLibLoader.java:31)
              at com.sun.glass.ui.Application$1.run(Application.java:75)
              at java.security.AccessController.doPrivileged(Native Method)
              at com.sun.glass.ui.Application.loadNativeLibrary(Application.java:73)
              at com.sun.glass.ui.Application.loadNativeLibrary(Application.java:85)
              at com.sun.glass.ui.gtk.GtkPlatformFactory.<clinit>(GtkPlatformFactory.java:23)
              at java.lang.Class.forName0(Native Method)
              at java.lang.Class.forName(Class.java:186)
              at com.sun.glass.ui.PlatformFactory.getPlatformFactory(PlatformFactory.java:20)
              at com.sun.glass.ui.Application.Run(Application.java:108)
              at com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:267)
              ... 5 more

      Note, that JavaFX Developer Preview build *12* does work for me without throwing that exception.

      It looks like it tries to load lib from wrong location - as you see from the stack trace above - it assumes "i386" folder is located within app-startup directory - while "libglass.so" file does exist, but under the standard "${JavaFX_Home}/rt/lib/i386/" path.

            kcr Kevin Rushforth
            kionjfx Kion (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: