Caught AppContextInfo(Bug 1004) IllegalAccessException: class com.jogamp.nativewindow.awt.AppContextInfo cannot access class sun.awt.AppContext (in module java.desktop) because module java.desktop does not export sun.awt to unnamed module @34a3d150 on thread main #11
Labels
bug
Something isn't working
Discussed here.
May workaround this with VM option up to Java 16 included :
java --illegal-access=permit -jar my.jar
This won't work for Java 17. At build/test time, Julien suggests
So running programs with these JVM args fixes the problem :
--add-opens=java.desktop/sun.awt=ALL-UNNAMED
Which also works to avoid this illegal access exception at runtime on Java 17.
The text was updated successfully, but these errors were encountered: