Archive for July 5th, 2010


Install NetBeans 6.9 to OS X 10.5.8

July 5th, 2010 — 11:23pm

NetBeans 6.9 is a great PHP IDE and I have been pretty happy about it. Although initially, I almost gave up installing this on my MacBook Pro – After installation was done and launch the application I have encountered an error saying “Cannot run on older version of Java 6 Standard Edition.
Please install Java 6 Standard Edition or newer or use –jdkhome switch to point to its installation directory.

To solve this problem:

Application: Utilities: Java Preference >> Drag Java SE 6 to the top

If this doesn’t fix the issue try:

Terminal: type “env”. Do you see JAVA_HOME is defined? If so, is this pointing to older version? If so fixing that should resolve the issue (at least it resolved my case). Here is how I fixed:

  1. my JAVA_HOME was set to

    /Library/Java/Home

    which was simply the symlink to

    System/Library/Frameworks/ JavaVM.framework/Versions/1.5.0/Home

  2. rename the symlink to Home_old
  3. then create new symlink point to 1.6 (SE 6) as follows: ln -s

    /System/Library/Frameworks/ JavaVM.framework/Versions/1.6.0/Home /Library/Java/Home

4 comments » | PHP

Back to top