Re: getAWTgraphicsconfiguration() causes NPE error
Posted by Oskarnaugh on Apr 05, 2022; 12:21pm
URL: https://forum.jogamp.org/getAWTgraphicsconfiguration-causes-NPE-error-tp4041439p4041707.html
I found out the source of the warnings:
They appear as soon as I use the sun.java2d-related system properties e.g.:
System.setProperty("sun.java2d.opengl", "true");
System.setProperty("sun.java2d.d3d", "false");
System.setProperty("sun.java2d.noddraw", "false");
Without setting them, there is no warning whatsoever to be seen. No VM arguments are needed.
The greater problem still arises when using a recent java version (e.g. version 17): "<local3>" (java3d version 1.6) or "awtConfig" (java3d version 1.7) are null and so it is not possible to create a Canvas3D at all.
If I understand correctly, there is no extension mechanism since java version 9. Nevertheless the program still runs correctly in for example version 11, so I don't understand your claim. I would expect it to not work at all from version 9 and on...
Anyway, do you have an idea, how java3d could be used with a recent java version? Is it even possible? If not, might it be fixed in a future release of java3d?