RSS Entries RSS
RSS Subscribe by Email

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″

Buy Me a Beer

Share and Enjoy:
  • DZone
  • del.icio.us
  • StumbleUpon
  • Reddit
  • Furl
  • Slashdot
  • Digg
  • Google Bookmarks
  • Technorati
  • Facebook

Tags:

3 Comments »

  1. Martin said,

    January 31, 2009 at 3:15 pm

    Thanks ! Useful !

  2. Lloyd said,

    February 15, 2009 at 3:33 pm

    Thanks I nearly went insane looking through the oprions to change the default jdk

  3. 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

RSS feed for comments on this post · TrackBack URL

Leave a Comment