Hi Tim,
On 14.03.22 06:19, Tim Boudreau wrote:
Is there an update for using nb-javac with JDK 17?
what update are you looking for?
I've been finding, for some runs of NetBeans, parsing and semantic highlighting do not work, and you get some log messages saying that a null parser was returned for whatever file is being parsed. I had been using version 15 (or is it JDK 15 specific - it was the suffix to the JAR name), patched to fix the maven scanning bug with a pull request I sent last year.
nb-javac of NB 13 is identical to the javac shipped with JDK 17, it is just backported to JDK 8 (automatically) and put into a module. NB 13 is the first release which has nb-javac enabled by default without having to download anything.
So, running on JDK 17 should give the same results with or without nb-javac installed. Its only purpose is if you want to run on JDKs <17 (but who would want to do that, right :)). NB 14 will require javac 18 etc, N+4 basically.
I don't know how you run NB, if you run dev builds all the time, it might be the case that you have an old nb-javac installed for some reason - since the namespace changed at some point.
Building the trunk and copying it over the JARs in modules/ext in my userdir solved that problem, but - is there an actual release that contains this code? Known problem?
you don't need to copy anything since it is enabled by default - start the dev build with fresh config and nb-javac is installed. If something is wrong there, it is likely that you are experiencing some form of jar hell due to having a very old nb-javac in your config or maybe even two at the same time. (plugin import from early 12.x?, manual config copy?)
the build itself used to be broken and didn't cleanup old nb-javac jars, but this shouldn't happen anymore (but maybe try a fresh clone anyway if everything else fails).
best regards, michael
-Tim
--------------------------------------------------------------------- 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
