Netbeans 6.5, Java 1.6 and Mac OSX

Had a lot of fun today trying to get my Netbeans to work on my MacBook. Apple tends to lag behind on Java versions and defaults to JDK1.5 to this very day. In order to use some plugins in Netbeans I needed Java 1.6 to work. At first I tried to set the global Java through the Java preferences application you can find in your utilities. This did not fix my issue since Netbeans ended up using 1.5 anyway. After some googling I stumbled across the following blog post:

What I found there fixed my netbeans without changing the default Java version on my Mac (which can mess up other java applications). What it boils down to is the following:

  1. Go to “/Applications/NetBeans/NetBeans”
  2. Edit “netbeans.conf”
  3. Change the “netbeans_jdkhome” to something like “netbeans_jdkhome=
This entry was posted in Apple, Netbeans, Java. Bookmark the permalink.

Leave a Reply