Re: Jogl/Jogamp on Java 8 building from source
Posted by
gouessej on
Dec 27, 2017; 12:51pm
URL: https://forum.jogamp.org/Jogl-Jogamp-on-Java-9-tp4038012p4038443.html
You seem to be using the correct version of JOGL and Java3D except if you have forgotten to remove any version of Java3D installed as an extension, this is explained in my tutorial.
Do you use "-Dj3d.allowNullGraphicsConfig
=true"?
I advise you to use the debug mode in your favourite IDE and to put a debug point into JoglPipeline.getBestConfiguration(GraphicsConfigTemplate3D,GraphicsConfiguration[]) and into Canvas3D.checkForValidGraphicsConfig(GraphicsConfiguration,boolean).
Moreover, I advise you to use the reflection API to call the private static method Canvas3D.defaultGraphicsConfiguration(). If it throws an exception or if it returns null, it will explain why all this doesn't work. Either GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice() is null in your configuration or GraphicsEnvironment.getLocalGraphicsEnvironment().
getDefaultScreenDevice().getBestConfiguration(GraphicsConfigTemplate) returns null. A dirty workaround would consist in filling the table manually in case of failure.
Edit.: GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice() isn't null according to your previous tests. Maybe GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getBestConfiguration(new GraphicsConfigTemplate3D()) is null. I'm not sure that "pixfmt=0" is a good piece of news. What happens with Java 1.8 update < 152 (i.e before the regression)?