Categories
Java NetBeans

Invalid jdkhome specified – Cannot locate java installation in specified jdkhome:

You click the NetBeans IDE shortcut and got a message like below:

This is due NetBeans cannot locate java installation in specified jdkhome: C:Program FilesJavajdk1.6.0_22
Most probably you initially installed JDK at the default location above and then you uninstall it and reinstall to another location.

Anyway, to fix this, all you need to do is just go to find netbeans.conf from where you installed your NetBeans. For me, I have it at C:Program FilesNetBeans 6.9.1etc

Once found, open the file and look for something like below:

netbeans_jdkhome=”C:Program FilesJavajdk1.6.0_22″

Then, change the above to the valid path, example

netbeans_jdkhome=”C:Javajdk1.6.0_22″

That’s it!