Hi, Am Dienstag, den 03.12.2019, 21:07 -0500 schrieb Steven Ingram: > I was happy to see recently that we can run the head of master with JDK > 11. I can build and run the app with JDK 11 (this is new info in the > project README). > > Unfortunately I was thwarted this evening by the Ant complaint about using > anything higher than JDK 8 to build the app when Debugging and using the > "Apply Code Changes" button. > > "...You are attempting to build NetBeans using JDK 9 (or higher). > This is forbidden..." > > I'm thinking this is just a bug now that we can apply code changes with JDK > 11. I even tried to kick off my debugging session like so: > > sudo ant -Ddebug.port=9009 -Dpermit.jdk9.builds=true tryme > > But it didn't give the results I wanted/expected. The ant command that ran > from hitting "Apply Code Changes" is this: > > "ant -f /Users/steveningram/Projects/incubator-netbeans/groovy/gradle > -Dfix.class=org/netbeans/modules/gradle/ActionProviderImpl debug-fix-nb" > > I'm trying to fix an issue for my first pull request, otherwise I would try > and fix this issue on my own. I could also make a Jira if need be. Is > there any documentation on proper ticket creation? > > I could even attempt to fix it with a little direction. >
you are not seeing an error, but the normal behavior of the build system. For apply code changes to work, the code first needs to be build. It is this phase where you are hitting the warning (just as you would when you build the module/netbeans). Create either a file (depending on how broad you want to configure this): $HOME/.nbbuild.properties or $NB_SOURCE/nbbuild/user.build.properties or $NB_SOURCE/nbbuild/site.build.properties and put this into the file: permit.jdk9.builds=true I assume, that the property is known (elso building would fail) - the files are included from: $NB_SOURCE/nbbuild/default-properties.xml HTH Matthias --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
