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:


This file should be found in install dir of netbeans

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

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

In default installation it should be something like:

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