The location of JDK path in NetBeans IDE is in the “netbeans_j2sdkhome property of your INSTALLATION_DIRECTORY/etc/netbeans.conf” file.
Here is an example:
# Default location of JDK, can be overridden by using –jdkhome <dir>:
netbeans_jdkhome=”D:\Java\jdk1.7.0″