NetBeans IDE 6.1 and Java 1.6 on MacOS

Some crucial bugs had been fixed since previous release. However, there are still some contradictions developing java apps based on release 1.6 – Class-Version Error, messaging missing libraries falsely, to name a few. Additionally, in certain issues compiling sources are done on v1.5 contrary to v1.6.
1 answer

Customize Netbeans' properties file

There have been many workarounds published at sun's forum facing this problems. The most easiest way is as follows:

  1. Goto Applications (Shift+Cmd A)
  2. Open 'Netbeans' folder
  3. Show Packages Contents (Contextmenu 'NetBeans 6.1.app')
  4. Contents > Resources > NetBeans > etc
  5. Edit 'netbeans.conf':
    # Default location of JDK, can be overridden by using --jdkhome :
    /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
  6. Save file
  7. DONE.

Happy developing and deploying apps using Netbeans 6.1 and Java 1.6 on MacOS.

Taggings: