Login  Register

Re: Jogl/Jogamp on Java 8 building from source

Posted by douglaslyon on Jan 01, 2018; 3:13pm
URL: https://forum.jogamp.org/Jogl-Jogamp-on-Java-9-tp4038012p4038474.html

Hi Predrag,
The code at:
http://www.docjava.com/book/cgij/code/jnlp/joglquad.jnlp
works fine...on the mac. Even with jdk9.
FYI.
  - Doug


On 12/31/17 2:03 PM, Predrag Boksic [via jogamp] wrote:

> 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)
>
>
> ------------------------------------------------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://forum.jogamp.org/Jogl-Jogamp-on-Java-9-tp4038012p4038467.html
> To unsubscribe from Jogl/Jogamp on Java 9, click here
> <
> NAML
> <
http://forum.jogamp.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>