Changing the default JDK in NetBeans.

How to change the default JDK on netbeans:


Modify netbeans.conf:

netbeans_jdkhome="/path/jdk1.6.0_31"

and restart


Example:
# vi ./netbeans-7.2.1/etc/netbeans.conf
netbeans_jdkhome="/jdk1.7.0_13"