Login  Register

Re: Jogl/Jogamp on Java 9 no compatible graphics context

Posted by gouessej on Jan 07, 2018; 2:09pm
URL: https://forum.jogamp.org/Jogl-Jogamp-on-Java-9-tp4038012p4038485.html

Look for "j3d". Ok the problem seems to come from mixing Java3D 1.6.0 with a version of imagej using an old version of Java3D. You mustn't mix two versions of Java3D. Using Java3D 1.7.0 would avoid some cases of name clashes as it uses a different package namespace but anyway, you can't load both JOGL 1 for an obsolete version of Java3D and JOGL 2 for Java3D >= 1.6. Maybe the uninstaller of imagej doesn't clean up everything correctly.

I advise you to wrap your JARs into a native software with Oracle javapackager or with JNDT (my tool) but it will be up to you to push the updates.

Sorry but if you need to copy a DLL that should be available in the JRE, I don't see what I can do to help you.

In my humble opinion, some of your problems can't be reproduced by others including me, there are some serious problems on your own machines. For example, I have no problem of missing AWT or whatever with Java 1.9 and earlier versions under Microsoft Windows 10 and JOGL 2 with or without Java3D.

I advise you to switch to a more recent version of imagej and to modify it if necessary to make it use Java3D 1.6.0 or 1.7 instead of an homemade fork with yet another different namespace "org.scijava.java3d".
Julien Gouesse | Personal blog | Website