Login  Register

Re: Java17 compatibility error ??

Posted by andrewk1972 on Oct 05, 2024; 11:11pm
URL: https://forum.jogamp.org/Java17-compatibility-error-tp4043006p4043547.html

Ok, I removed all the unnecessary stuff and renamed 3D Stuff to 3D_Stuff...
No change. Still get Error: Could not find or load main class ‐‐add-opens=java.desktop.sun.awt=ALL-UNNAMED

So I wondered if the —add-opens option need to be AFTER the -classpath option...?
Tried this but now I get:
Error occurred during initialization of boot layer
java.lang.RuntimeException: Unable to parse --add-opens <module>/<package>: java.desktop.sun.awt

I had to change the order of the —add-opens option on the command line because Eclipse always places it first before the classpath. Not sure whether you can change it in Eclipse.

I take it that this is an issue introduced by Java 9..?