Hallo, I wonder if you have come across this dilemma. I 'm trying to fix some bugs in NetBeans JShell by using the NetBeans debugger. However, to build the *jshell.support *module, one needs to set the Java platform to 8, but in order to execute it in debug mode, one needs to set the Java platform to 13 (or something >=9 anyway). The problem is that then the debugger tries to build the module again using JDK >=9 and of course it fails. netbeans/nbbuild/templates/projectized.xml:74: You are attempting to build NetBeans using JDK 9 (or higher). This is forbidden as it may lead to accidental usage of JDK 9+ APIs. Either run Ant with JDK 8, or set nbjdk.home=<JDK 8 home> in /Users/MyMacBook/Projects/netbeans/incubator-netbeans/nbbuild/user.build.properties (can be set from IDE by opening a module project's Properties dialog and picking the right Java Platform in Libraries). You can alternatively set this property in /Users/MyMacBook/.nbbuild.properties to affect all checkouts on this machine. If you are sure you want to build with JDK 9+ anyway, use: -Dpermit.jdk9.builds=true BUILD FAILED (total time: 0 seconds)
I wonder where to add -Dpermit.jdk9.builds=true to. I tried in project.properties javac.compilerargs=-Dpermit.jdk9.builds=true -Xlint -Xlint:-serial but it doesn't find it. Any suggestions are welcome. Kind regards, John.