Search code examples
javanetbeansnetbeans-11

Enable Compile on Save option in Netbeans 11


How can I enable Compile on Save in Apache Netbeans IDE 11.0?

https://i.sstatic.net/OOYQE.png

Output of my java -version

java version "11.0.4" 2019-07-16 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.4+10-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.4+10-LTS, mixed mode)

I tried setting:

  • compile.on.save=true in nbproject/private/private.properties

  • compile.on.save=true in nbproject/private.properties

  • compile.on.save.unsupported.javafx=true in nbproject/private.properties

  • compile.on.save.unsupported.javafx=false in nbproject/private.properties

and possible combinations of these. But not to succeed so far.


Solution

  • The nbjavac plugin needs to be installed. See also here.