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:
- open netbeans.conf
- set netbeans_jdkhome to point to the proper location, eg:
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: