## How to Fix NetBeans jdkhome error

I use NetBeans as the IDE both in Linux and Windows environment. I like this NetBeans IDE very much. In my Windows PC Java Runtime Environment was updated recently. I am getting following error message when I start NetBeans.

“Cannot find java.exe in specified jdkhome.”

If I click on yes it opens using default version of JRE. I fixed this error message today. Its a simple solution. Lets have a look into the solution.

1. Open NetBeans configuration file from NetBeans installation directory. (i.e. C:\Program Files\NetBeans 6.5\etc\netbeans.conf)

2. Set the configuration netbeans_jdkhome to the path of latest Java installed in your PC. (i.e. C:\Program Files\Java\jer1.6.6)

And you are done.