netbeans not all requested modules can be enabled

Go to /etc and open netbeans.conf.

Note: you can find netbeans_root_folder with ls -l $(which netbeans)

Make sure the variable netbeans_jdkhome has the correct value, something like:

netbeans_jdkhome="/usr/lib/jvm/java-8-oracle"

Either edit /usr/local/netbeans-X.Y/etc/netbeans.conf to contain

netbeans_jdkhome="/usr/lib/jvm/java"

Or use the command:

/usr/local/netbeans-X.Y/bin/netbeans --jdkhome /usr/lib/jvm/java

edit /usr/local/netbeans-X.Y/etc/netbeans.conf file

netbeans_jdkhome="/usr/lib/jvm/java-8-openjdk-amd64"

Tags:

Java

Netbeans

Jdk