Login  Register

Re: getAWTgraphicsconfiguration() causes NPE error

Posted by philjord on Nov 04, 2021; 2:25am
URL: https://forum.jogamp.org/getAWTgraphicsconfiguration-causes-NPE-error-tp4041439p4041442.html

That's great, your environment is almost the same as mine.

The next step is probably to investigate Julien's suggestion on stackoverflow of checking for unexpected jar files in the load

It's not easy to get a jar listing out of Java, it depends a bit on your IDE.
I'm using Eclipse and the run configurations dialog has a "Show Command Line"

Which gives me
C:\Program Files\Java\jdk1.8.0_25\bin\javaw.exe
-Dfile.encoding=Cp1252
-classpath "E:\Java3D\workspace-1.6\test\bin;C:\Users\pjnz\.m2\repository\org\jogamp\jogl\jogl-all\2.3.2\jogl-all-2.3.2.jar;C:\Users\pjnz\.m2\repository\org\jogamp\gluegen\gluegen-rt\2.3.2\gluegen-rt-2.3.2.jar;C:\Users\pjnz\git\java3d-utils-1.6.0\bin;C:\Users\pjnz\git\java3d-core-1.6.0\bin;C:\Users\pjnz\git\vecmath-1.6.0\bin;E:\Java3D\workspace-1.6\java3d-examples\bin" _testcase.tuval7

so I notice I'm using the maven 2.3.2 version of jogl (just randomly I guess)

If the above doesn't give a clue about other jars on the classpath you could try witht eh 2.3.2 fat jar instead here:
https://jogamp.org/deployment/jogamp-current/archive/jogamp-fat-all.7z