Login  Register

Re: Unable to determine GraphicsConfiguration

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

the eclipse project with the rudimentary test program is not modular, without the ALL-MODULE-PATH argument the error will be:

Error: Could not find or load main class fi.jkauppa.joglrenderengine.JOGLRenderEngine
Caused by: java.lang.NoClassDefFoundError: com/jogamp/opengl/GLEventListener

I run all my non-modular programs with/without native libraries this way, all others work just fine.

when compiled into the /bin directory its just a normal non-modular java class program.
that I could try to run with the non-modular style run parameters.
I think the modular style run time parameters are default to eclipse run environment even if the project program is not modular.

meh, now it works with this exact run command, pesky -cp dot (run from the /bin directory of the project):
java --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 -cp "C:\eclipse\pkg\jogamp-fat-v2.5.0\jogamp-fat.jar;." fi.jkauppa.joglrenderengine.JOGLRenderEngine