Changing default JDK inside Netbeans
Inside the IDE we have the menu Tools –> Java Platforms. Here we can assign more JDK locations. But we can’t assign a default JDK. There is no interface button for this.
The way to assign a default JDK is to go to the Netbeans install location {root}/netbeans/etc and edit the file netbeans.conf.
# (see http://wiki.netbeans.org/wiki/view/FaqGCPauses)
# Default location of JDK, can be overridden by using –jdkhome :
netbeans_jdkhome=”D:jdk1.6.0_10″# Additional module clusters, using ${path.separator} (‘;’ on Windows or ‘:’ on Unix):
#netbeans_extraclusters=”/absolute/path/to/cluster1:/absolute/path/to/cluster2″
netbeans_default_userdir=d:/JavaCAPS62/.netbeans/caps
#netbeans_jdkhome=D:/jdk1.6.0_20
I’ve commented out the first bold line and filled the reference to the new default location, and commented the old default location. Restarting Netbeans will run the new settings.

Comments are closed.