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 Read more about Invalid jdkhome specified – Cannot locate java installation in specified jdkhome:[…]