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 Files\Java\jdk1.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 Files\NetBeans 6.9.1\etc
Once found, open the file and look for something like below:
netbeans_jdkhome=”C:\Program Files\Java\jdk1.6.0_22″
Then, change the above to the valid path, example
netbeans_jdkhome=”C:\Java\jdk1.6.0_22″
That’s it!

27 August 2011 at 6:31 am |
That’s it! Problem resolved! Thanks man!
17 November 2011 at 9:18 pm |
Wow it worked alright..!Thanks dude
28 November 2011 at 7:33 pm |
nice tutorial
thanks
5 January 2012 at 3:08 pm |
Thanks. it helped!
5 January 2012 at 7:27 pm |
Thanks steve
6 January 2012 at 1:01 am |
You’re welcome! Glad it helps.