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
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.