From NetBeans Installation Instructions
The default location in Windows is C:\Program Files\Java\jdk1.7.0_10 or similar.
If your JDK is at
C:\Java you just have to:
- re-install the JDK under the default Netbeans location, or
- specify your custom location during the installation wizard
solved Netbeans would not find compatible jdk while installation