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:
- my JAVA_HOME was set to
/Library/Java/Homewhich was simply the symlink to
System/Library/Frameworks/ JavaVM.framework/Versions/1.5.0/Home - rename the symlink to Home_old
- 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