Change the NetBeans Default JDK
A client sent me some code today to update. He was using the NetBeans, so I downloaded the IDE and fired it up to open the project he’d sent me. Unfortunately, the project wouldn’t compile because he’d written the code in Java 6 while NetBeans was using Java 5. I couldn’t find a NetBeans menu to update the setting, but rather found that the fix is to add the following in NetBean’s etc/netbeans.conf file:
# Default location of JDK, can be overridden by using –jdkhome <dir>:
netbeans_jdkhome=”C:\Program Files\Java\jdk1.6.0_05″
Tags: NetBeans










Martin said,
January 31, 2009 at 3:15 pm
Thanks ! Useful !
Lloyd said,
February 15, 2009 at 3:33 pm
Thanks I nearly went insane looking through the oprions to change the default jdk
ashish said,
May 14, 2009 at 7:44 am
Thanks a million buddy this was great. I had to other way round 1.6 -> 1.5