Login  Register

Re: Java17 compatibility error ??

Posted by goodwilling on Oct 02, 2023; 2:42am
URL: https://forum.jogamp.org/Java17-compatibility-error-tp4043006p4043008.html

In our case, we use the following options when using Java 17.

(Windows)
--add-exports=java.desktop/sun.awt=ALL-UNNAMED

(Linux)
--add-exports=java.desktop/sun.awt=ALL-UNNAMED  --add-opens=java.desktop/sun.awt.X11=ALL-UNNAMED

By the way, it is unfortunately found that the "--add exports" option is ignored in some Windows systems if it is added in .l4j.ini for Launch4j (an old version), whereas the option works if added to a Windows .bat file.