Tag Archives: Java

Netbeans 7.0 and "Cannot find java. Please use the -- jdkhome switch"

Netbeans LogoWhy do I like coding in Netbeans IDE? I don't really know why, I just do. Don't get me wrong, I use Eclipse and it is a great tool but Netbeans and me go way back. But unfortunately there is a little hiccup with the latest Netbeans 7.0. Installing Netbeans while having OpenJDK results in Netbeans refusing to start with error message "Cannot find java. Please use the --jdkhome switch" when you try to start it with Sun (now Oracle) Java. The fix for this annoying bug (I guess we can call it bug) is rather trivial so read on.

Continue reading