Netbeans: “not all requested modules can be enabled”

If you have installed Oracle Java 8 via default installers and you get the awkward message “not all requested modules can be enabled” in your Linux box when trying to create a new java project in Netbeans you should:

  1. open netbeans.conf
    1. set netbeans_jdkhome to point to the proper location, eg:
netbeans_jdkhome="/usr/lib/jvm/java-8-oracle"

This file should be found in installation directory of netbeans.

The easiest way to find netbeans.conf is to run the following command:

find / -name netbeans.conf 2> /dev/null

You could also look at the following directories:

  • /home/netbeans-X.Y/etc/netbeans.conf
  • /usr/local/netbeans-X.Y/etc/netbeans.conf

References:

https://askubuntu.com/questions/750514/netbeans-not-all-requested-modules-can-be-enabled

 

Advertisements