Login  Register

Re: Unable to determine GraphicsConfiguration

Posted by Goofyseeker3 on Mar 04, 2024; 6:40pm
URL: https://forum.jogamp.org/Unable-to-determine-GraphicsConfiguration-tp4042444p4043361.html

now it works even without --add-exports using only the --add-opens arguments.

I moved the jogamp-fat.jar from module includes to classpath in eclipse and now it works.
this should be support both so that the loading method does not matter.

Final working command line running from eclipse is:
C:\Program Files\Java\jdk-21\bin\javaw.exe
--add-exports java.base/java.lang=ALL-UNNAMED
--add-exports java.desktop/sun.java2d=ALL-UNNAMED
--add-opens java.desktop/sun.awt=ALL-UNNAMED
--add-opens java.desktop/sun.awt.windows=ALL-UNNAMED
-Dfile.encoding=UTF-8
-Dstdout.encoding=UTF-8
-Dstderr.encoding=UTF-8
-classpath "C:\stuff\data\projects\joglrenderengine\bin;C:\eclipse\pkg\jogamp-fat-v2.5.0\jogamp-fat.jar"
-XX:+ShowCodeDetailsInExceptionMessages fi.jkauppa.joglrenderengine.JOGLRenderEngine