Netbeans 7 – “Cannot locate java installation in specified jdkhome:”

I’ve installed previous versions of jdk1.6.0_17, and then after installing netbeans 7, I upgrade jdk to version jdk1.6.0_25.

Now, everytime I start Netbeans, it always show me this message :

Cannot locate java installation in specified jdkhome:
C:\Program Files\Java\jdk1.6.0_17
Do you want to try to use default version?

If I click “Yes”, the next time Netbeans started, the same message appear.


So to remove this, I change “netbeans.conf” in “C:\Program Files\NetBeans 7.0\etc”.

Change “netbeans_jdkhome” like this :

netbeans_jdkhome=”C:\Program Files\Java\jdk1.6.0_25″

then your Netbeans run as normal. ^_^

9 Responses

  1. thanx man !! was really helpful. Was searching for this on different websites.

  2. Gracias, por la ayuda!!

  3. Access Denied! My computer won’t let me edit the file.

    • move the file to another place, edit it there and move it back to the etc folder. hope it will work………..

  4. Looking forward to doing this for every new Java update. 😦

  5. 不错,正在找个 — from china

  6. Thanks!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: