I recently upgraded my JDK and I started getting this message when I launched Netbeans.
Cannot locate java installation in specified jdkhome: [some outdated path]. Do you want to try to use default version?
I’m capable of ignoring messages like this for months, but when I tried to start a new Maven web application, it balked. It’s simple enough to fix, but it wasn’t obvious to me. So here you go.
In your Netbeans home directory (for example, C:\Program Files\NetBeans 7.0.1), open up the netbeans.conf in the etc directory (C:\Program Files\NetBeans 7.0.1\etc\netbeans.conf).
Theres a property called netbeans_jdkhome. Change the value to match the JDK you want Netbeans to use (for example, C:\Program Files\Java\jdk1.6.0_25).
Save your changes
Thanks for reading! If you would like to see what else I’m up to, check out Whiff