Hello everyone,

I am updating my platform application to use NB15 and OpenJDK 17.  My 
application has a text editor, which now throws the exception:

module java.desktop does not "opens javax.swing.text" to unnamed module

Reading up on Strong JDK Encapsulation, I understand that I need to modify my 
platform application to include "add-opens". I found 
https://github.com/apache/netbeans/blob/master/nbbuild/jms-config/desktop.flags 
and see

--add-opens=java.desktop/javax.swing.plaf.basic=ALL-UNNAMED
--add-opens=java.desktop/javax.swing.text=ALL-UNNAMED
--add-opens=java.desktop/javax.swing=ALL-UNNAMED

Where do I need to put these so that I can launch my app in the debugger from 
the installer?

Thanks,
Peter



Reply via email to