Re: Netbeans platform project compiling with JDK 17

2023-02-19 Thread Michael Bien
Hi Toni, there was a thread about this a few days ago on the dev list: https://lists.apache.org/thread/djoy8qmoy6y0tt8314olbp6jj2y72639 short version:  yes, you are going to need those flags. The IDE itself uses the following flags: https://github.com/apache/netbeans/tree/master/nbbuild/jms-c

Re: Netbeans platform project compiling with JDK 17

2023-02-19 Thread Toni Helenius
Ok, I think I solved it. At least locally I'm able to run our project now. Although the release version also probably needs these flags to somewhere (*.conf). But the local can be run by adding: \nbproject\project.properties run.args.extra=-J--add-opens=java.base/java.net=ALL-UNNAMED -J--add-

Netbeans platform project compiling with JDK 17

2023-02-19 Thread Toni Helenius
Hi! We have a Netbeans Platform project with Ant build. Currently it is hooked up with Netbeans 16 and Java 11. Everything is running smoothly. However, we would like to transition to Java 17. Running the project with JDK 17 stops to a problem immediately. Is it even possible to use JDK 17 wi