Posted by
Predrag Bokšić on
Jan 09, 2018; 5:25pm
URL: https://forum.jogamp.org/Jogl-Jogamp-on-Java-9-tp4038012p4038506.html
I can confirm that the JNLP file from professor Douglas works well in Windows 10.
joglquad_-_Copy.jnlp
Some history...............................
Apparently, when you try to load the jogamp-fat.jar or otherwise, individual library jars that we've been discussing, a wide range of errors appears. Some errors mention the security issues, the issues with Manifest attributes, the problems with the loading of files or classes, or the problems with finding the graphics configuration... :-) The last error that I've seen is "-1". I guess that this one is the closest one to the solution. The Java console displays a message "Finding jawt.dll", which does not seem to indicate an error. After this message, some cache-related and update-related messages are displayed and then the error message "-1" is shown in a separate pop-up window.
..................................................
This message is removed when the JNLP file contains the line
java-vm-args="--add-exports=java.base/java.lang=ALL-UNNAMED --add-exports=java.desktop/sun.awt=ALL-UNNAMED --add-exports=java.desktop/sun.java2d=ALL-UNNAMED "
I have yet to verify the complete file structure, but the files are obviously signed with a certificate.
Notice that the Java versioning system has changed, so the Java version 1.9 does not exist. You have to choose and use one of these options:
<j2se version="1.8"/>
<j2se version="1.8+"/>
<j2se version="9"/>
<j2se version="9+"/>
The JNLP does not function in Ubuntu 16 yet, but it does run the application and creates a window correctly. However, the window is empty.
I am copying the content from Douglas...
<extension name="Java3D" href="jogl.jnlp"></extension>
refers to the
Java3D.jnlp<jnlp spec="1.0+" codebase="
http://show.docjava.com:80/book/cgij/code/jnlp/"> <information>
<title>Java 3D</title>
<vendor>DocJava Inc.</vendor>
<homepage href="
http://www.docjava.com"/> <description>Java 3D library</description>
</information>
<security>
<all-permissions/>
</security>
<resources os="Windows">
<jar href="libs/jogl/j3dcore.jar" download="eager"/>
<jar href="libs/jogl/j3dutils.jar" download="eager"/>
<jar href="libs/jogl/vecmath.jar" download="eager"/>
</resources>
<resources os="Windows" arch="amd64">
<nativelib href="libs/jogl/natives/windows-amd64/gluegen-rt.dll.jar" download="eager"/>
<nativelib href="libs/jogl/natives/windows-amd64/joal.dll.jar" download="eager"/>
<nativelib href="libs/jogl/natives/windows-amd64/jocl.dll.jar" download="eager"/>
<nativelib href="libs/jogl/natives/windows-amd64/jogl_desktop.dll.jar" download="eager"/>
<nativelib href="libs/jogl/natives/windows-amd64/jogl_mobile.dll.jar" download="eager"/>
<nativelib href="libs/jogl/natives/windows-amd64/nativewindow_awt.dll.jar" download="eager"/>
<nativelib href="libs/jogl/natives/windows-amd64/nativewindow_win32.dll.jar" download="eager"/>
<nativelib href="libs/jogl/natives/windows-amd64/newt.dll.jar" download="eager"/>
<nativelib href="libs/jogl/natives/windows-amd64/oculusvr.dll.jar" download="eager"/>
<nativelib href="libs/jogl/natives/windows-amd64/soft_oal.dll.jar" download="eager"/>
</resources>
<resources os="Windows" arch="x86">
<nativeib href="libs/jogl/natives/windows-i586/gluegen-rt.dll.jar" download="eager"/>
<nativeib href="libs/jogl/natives/windows-i586/joal.dll.jar" download="eager"/>
<nativeib href="libs/jogl/natives/windows-i586/jocl.dll.jar" download="eager"/>
<nativeib href="libs/jogl/natives/windows-i586/jogl_desktop.dll.jar" download="eager"/>
<nativeib href="libs/jogl/natives/windows-i586/jogl_mobile.dll.jar" download="eager"/>
<nativeib href="libs/jogl/natives/windows-i586/nativewindow_awt.dll.jar" download="eager"/>
<nativeib href="libs/jogl/natives/windows-i586/nativewindow_win32.dll.jar" download="eager"/>
<nativeib href="libs/jogl/natives/windows-i586/newt.dll.jar" download="eager"/>
<nativeib href="libs/jogl/natives/windows-i586/oculusvr.dll.jar" download="eager"/>
<nativeib href="libs/jogl/natives/windows-i586/soft_oal.dll.jar" download="eager"/>
</resources>
<resources os="Mac">
<jar href="libs/jogl/j3dcore.jar" download="eager"/>
<jar href="libs/jogl/j3dutils.jar" download="eager"/>
<jar href="libs/jogl/vecmath.jar" download="eager"/>
<jar href="libs/jogl/jogamp-fat.jar" download="eager"/>
</resources>
<resources os="Linux" arch="i386">
<nativelib href = "libs/linux/jogl-natives-linux-i586.jar" />
</resources>
<resources os="Linux" arch="x86">
<nativelib href = "libs/linux/jogl-natives-linux-i586.jar" />
</resources>
<resources os="Linux" arch="amd64">
<nativelib href = "libs/linux/jogl-natives-linux-amd64.jar" />
</resources>
<resources os="Linux" arch="x86_64">
<nativelib href = "libs/linux/jogl-natives-linux-amd64.jar" />
</resources>
<component-desc />
</jnlp>
... so there we can see the possible improvements to make it run on Linux :-)