Problem : "Netbeans can't find JDK for modules"

Solve :
- Install OpenJDK (apt-get install openjdk-8-jdk)
- Edit the first netbeans conf at /etc/netbeans.conf
- Unmark netbeans_jdkhome and add the JDK location (for example /usr/lib/jvm/java-8-openjdk-amd64)
- Edit the second conf at /usr/local/netbeans-8.2/etc/netbeans.conf
- Add the same OpenJDK path at the line netbeans_jdkhome
- Restart Netbeans