nb-javac is used internally by NetBeans to decouple the runtime JDK version from editor capabilities. This allows NetBeans to use the latest upstream javac without having to run on the latest JDK.
nb-javac is currently built from
https://github.com/JaroslavTulach/nb-javac
and available on maven central
https://mvnrepository.com/artifact/com.dukescript.nbjavac/nb-javac
...
To download nb-javac latest code , please run the below command.
hg clone http://hg.netbeans.org/main/nb-java-x
Steps to create nb-javac plugin.
...
- ant -Dnbplatform.default.netbeans.dest.dir=${path-to-built-nb} -Dnbplatform.default.harness.dir=${path-to-built-nb}/harness clean
- ant -Dnbplatform.default.netbeans.dest.dir=${path-to-built-nb} -Dnbplatform.default.harness.dir=${path-to-built-nb}/harness build
- ant -Dnbplatform.default.netbeans.dest.dir=${path-to-built-nb} -Dnbplatform.default.harness.dir=${path-to-built-nb}/harness nbms
...