Monday, September 3, 2012

How to change jdkhome for Netbeans

After you change your JDK home directory, your installed NetBeans will have the following error when you start it:

You can easily avoid this error occurring by changing the configuration file for NetBeans.
This configuration file: netbeans.config is located in: Your_NetBeans_Installation_Dir\etc.

Open this file and change the item: netbeans_jdkhome to your new JDK home directory as the following example:


Then save the change.   Note that by default this file is set to the security properties without Write attribute so you need to change the security property before you can save your changes.

After the change is saved NetBeans can be started to use the new JDK now.

No comments:

Post a Comment