Install NetBeans 6.9 to OS X 10.5.8

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

Category: PHP 4 comments »

4 Responses to “Install NetBeans 6.9 to OS X 10.5.8”

  1. Alexis

    Hi,
    Many thanks for your help. Dragging Java SE 6 to the top did the trick.
    Netbeans 6.9 is now running on my Macosx 10.5
    Thanks
    Alexis

  2. Tweets that mention Install NetBeans 6.9 to OS X 10.5.8 — infinite possibility -- Topsy.com

    [...] This post was mentioned on Twitter by Jeremy Romey【ツ】, David Gueye. David Gueye said: Si vous non plus vous n'arrivez pas à faire fonctionner Netbeans 6.9 sur mac : http://bit.ly/bpS3mG (merci à @jeremyFreeAgent) [...]

  3. theMatrix

    My problem is there is no Java folder inside my Library folder. Java already installed, how can this happened?

  4. naoko

    theMatrix,
    Is JAVA_HOME specified in env? If so, what is the path?
    Do you have JavaVM.framework folder in System: Library:Frameworks? That’s where actual library is located. What’s under Macintosh HD: Library: Java should hold just alias (symlink) to the actual installation path.


Leave a Reply



Spam protection by WP Captcha-Free

Back to top