Tuesday, August 14, 2012

How to set and use different JDK versions for Netbeans on CentOS

 How to set and use different JDK versions for Netbeans on CentOS

1.Find the configuration file netbeans.conf
# locate netbeans.conf

2.The path would look like this:
# /usr/local/netbeans-6.9.1/etc/netbeans.conf

3.Open the configure file:
# sudo vim  /usr/local/netbeans-6.9.1/etc/netbeans.conf

4.Find the following statements in your netbeans.conf file:
# Default location of JDK, can be overridden by using --jdkhome :
netbeans_jdkhome="/usr/java/latest"


5. Change the version you like.
it should work now.

1 comment: