Login  Register

Re: Jogl / Java3D with Java 11 ?

Posted by DonPearson on Aug 13, 2019; 7:53pm
URL: https://forum.jogamp.org/Jogl-Java3D-with-Java-11-tp4039896p4039932.html

Well I did make some progress today!  While working outside of Netbeans, it became apparent that I was still missing a classpath to the jogamp.fat-all jar file.  The only way I could get Netbeans to successfully compile all the files was to promote j3dutils.jar, j3dcore.jar, and vecmath.jar to the Modulepath, leaving jogamp-fat.jar on the classpath.  The software then compiled succesfully.  ( i never could get it to compile successfully with the 4 jar files above left just on the classpath).  By adding -cp jogamp-fat.jar to the VM options for run, the application actually came up and ran successfully!  So at least now, I have a fully functioning application with Java11 -- at least in Netbeans.  

I get the following warnings, but at least the app is fully functional:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.jogamp.common.os.NativeLibrary$3 (file:/C:/projects/extLib/JogAmp/jogamp-fat-all/jogamp-fat/jogamp-fat.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

It won't allow use of jLink for distribution though, so now I still have to figure out how to bundle it for external use.  I have read a bit about jdep to understand dependencies, but don't think that will get me where I need to go to have a fully functioning external package.  

Also, I should note that I have not incorporated the -add exports... statements yet. That may be part of in the intermediary steps as I go forward.  

But for today, I will stay happy and know that it all works in Netbeans with Java11.