Login  Register

Re: Jogl/Jogamp on Java 8 building from source

Posted by Predrag Boksic on Dec 31, 2017; 7:03pm
URL: https://forum.jogamp.org/Jogl-Jogamp-on-Java-9-tp4038012p4038467.html

The jogl-only test program works on Oracle 1.8. As you know, it crashes when exiting on Oracle 9.0.1. In the case of OpenJDK 9, the program failed to execute.  

/Users/gamma/Downloads/jdk-9+181/bin/java -jar jogl-test-only.jar
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.jogamp.common.os.NativeLibrary$3 (file:/Users/gamma/Documents/jogl-test-only/jogl-test-only.jar) to method java.lang.ClassLoader.findLibrary(java.lang.String)
WARNING: Please consider reporting this to the maintainers of com.jogamp.common.os.NativeLibrary$3
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Exception in thread "main" java.lang.UnsatisfiedLinkError: /Users/gamma/Downloads/jdk-9+181/lib/libfontmanager.dylib: dlopen(/Users/gamma/Downloads/jdk-9+181/lib/libfontmanager.dylib, 1): Library not loaded: /Users/jenkins/workspace/openjdk9_build_x86-64_macos/openjdk/installedfreetype/lib/libfreetype.6.dylib
  Referenced from: /Users/gamma/Downloads/jdk-9+181/lib/libfontmanager.dylib
  Reason: image not found
        at java.base/java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2614)
        at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2520)
        at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:873)
        at java.base/java.lang.System.loadLibrary(System.java:1857)
        at java.desktop/sun.lwawt.macosx.LWCToolkit$1.run(LWCToolkit.java:94)
        at java.desktop/sun.lwawt.macosx.LWCToolkit$1.run(LWCToolkit.java:83)
        at java.base/java.security.AccessController.doPrivileged(Native Method)
        at java.desktop/sun.lwawt.macosx.LWCToolkit.<clinit>(LWCToolkit.java:82)
        at java.base/java.lang.Class.forName0(Native Method)
        at java.base/java.lang.Class.forName(Class.java:292)
        at java.desktop/java.awt.Toolkit$2.run(Toolkit.java:573)
        at java.desktop/java.awt.Toolkit$2.run(Toolkit.java:568)
        at java.base/java.security.AccessController.doPrivileged(Native Method)
        at java.desktop/java.awt.Toolkit.getDefaultToolkit(Toolkit.java:567)
        at jogamp.nativewindow.jawt.JAWTJNILibLoader$1.run(JAWTJNILibLoader.java:58)
        at java.base/java.security.AccessController.doPrivileged(Native Method)
        at jogamp.nativewindow.jawt.JAWTJNILibLoader.<clinit>(JAWTJNILibLoader.java:52)
        at jogamp.nativewindow.jawt.JAWTUtil.<clinit>(JAWTUtil.java:335)
        at java.base/java.lang.Class.forName0(Native Method)
        at java.base/java.lang.Class.forName(Class.java:375)
        at com.jogamp.nativewindow.NativeWindowFactory$3.run(NativeWindowFactory.java:344)
        at com.jogamp.nativewindow.NativeWindowFactory$3.run(NativeWindowFactory.java:340)
        at java.base/java.security.AccessController.doPrivileged(Native Method)
        at com.jogamp.nativewindow.NativeWindowFactory.initSingleton(NativeWindowFactory.java:340)
        at com.jogamp.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1721)
        at com.jogamp.opengl.GLProfile.access$000(GLProfile.java:80)
        at com.jogamp.opengl.GLProfile$1.run(GLProfile.java:230)
        at java.base/java.security.AccessController.doPrivileged(Native Method)
        at com.jogamp.opengl.GLProfile.initSingleton(GLProfile.java:216)
        at com.jogamp.opengl.GLProfile.getDefaultDevice(GLProfile.java:2027)
        at com.jogamp.opengl.awt.GLCanvas.<init>(GLCanvas.java:264)
        at com.jogamp.opengl.awt.GLCanvas.<init>(GLCanvas.java:231)
        at com.jogamp.opengl.awt.GLCanvas.<init>(GLCanvas.java:218)
        at JOGLQuad.main(JOGLQuad.java:72)