I had the same problem with NetBeans 8.1 on Linux Mint 17.2 and I found the solution (during install a have chosen wrong JDK directory).
If a compatible JDK installation cannot be found, you might need to manually add a path to the JDK installation directory by doing the following:
https://netbeans.org/community/releases/81/install.html#install_zip