mbien opened a new pull request, #6436: URL: https://github.com/apache/netbeans/pull/6436
When NB is run on JDK 21, building/running NB modules fails with: ``` Error starting modern compiler at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:64) ... Caused by: java.lang.IllegalAccessError: class com.sun.tools.javac.main.Main (in unnamed module @0x50ba363b) cannot access class jdk.internal.opt.CommandLine$UnmatchedQuote (in module jdk.internal.opt) because module jdk.internal.opt does not export jdk.internal.opt to unnamed module @0x50ba363b at com.sun.tools.javac.main.Main.compile(Main.java:224) ... BUILD FAILED (total time: 0 seconds) ``` adding `jdk.internal.opt` to the java module flags list fixes this. For NB 19, simply add `-J--add-exports=jdk.internal.opt/jdk.internal.opt=ALL-UNNAMED` to the JVM options. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org For additional commands, e-mail: notifications-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists