Hey Helmut,

 

According to this page:

 

https://netbeans.apache.org/download/nb120/index.html  =>  In these scenarios, 
make sure to uninstall the NetBeans "nb-javac" fork, if it is installed, and to 
not install it when prompted to do so. The "nb-javac" fork does not support the 
latest Java language features and is mandatory only when you run Apache 
NetBeans on JDK 8. Over time, Apache NetBeans aims to move away completely from 
the "nb-javac" fork, except for when JDK 8 is used to run Apache NetBeans, 
since JDK 8 does not provide the capabilities enabling Apache NetBeans to use 
its Java compiler in support of its Java Editor features.

 

I just discovered that refactoring issues I’ve been having with 12 for over a 
year now seem to be related to the existence of nb-javac.  For some reason I 
thought nb-javac needed to be installed.  I think I made this assumption 
because I develop web apps and when NB installs the J2EE support for web apps, 
it also installs nb-javac giving the impression that nb-javac is needed for 
webapp development.

 

When I uninstalled the nb-javac plugin this week, my refactoring problems went 
away.  These problems consisted of NB throwing exceptions and mangling code 
when trying to rename classes or methods or moving classes to new packages when 
those classes / methods had more than a dozen or so dependencies.

 

With that said, this was the case for 12.5.  When I upated to 12.6 this week 
and tried to uninstall nb-javac, I ran into other problems.  I’ve since 
switched back to 12.5 as I don’t have time to try to troubleshoot why 12.6 
isn’t working.

 

M. Warble

 

 

From: Helmut Leininger [mailto:h.leinin...@gmx.at] 
Sent: Wednesday, December 8, 2021 1:22 PM
To: NetBeans Mailing List <users@netbeans.apache.org>
Subject: Netbeans 12.6 - nb-javac

 

Hi,

I have seen there was (and is) some discussion about nb-javac. Is it 
recommended to use it with NB 12.6 or should it be removed ?

Thanks
Helmut Leininger

Reply via email to