Re: Jogl / Java3D with Java 11 ?
Posted by
gouessej on
Aug 10, 2019; 3:34pm
URL: https://forum.jogamp.org/Jogl-Java3D-with-Java-11-tp4039896p4039922.html
I've just tried to run my game (which uses JOGL) with Java11 and this works:
java -jar tuer.jar
This works too:
java -jar tuer.jar --add-exports java.base/java.lang=ALL-UNNAMED --add-exports java.desktop/sun.awt=ALL-UNNAMED --add-exports java.desktop/sun.java2d=ALL-UNNAMED
I use a single fat JAR. As you use multiple JARs, you mustn't use the "-jar" option, you have to use "-cp" with the classpath instead.
--add-exports might be useful to compile your source code and to run your program, --add-opens might be useful to run your program.
Your bug only occurs under Windows whereas I'm under GNU Linux at home. I'll try under Microsoft Windows 10 in a few days but I'm almost sure that my second command line still works, I tested it under Windows 10 but with Java 9.
Maybe you could add the exports into module-info.jar but I'm not sure that it would work.