On Mac OS X, Java 7 is installed and Java 6 o'clock is not installed, and Java-dependent software such as eclipse may be encountered:
To open "Eclipse," you need a Java SE 6 runtime. Would to install one now?
Such error hints, after finding and experimenting, here are two solutions.
1. Modify the Info.plist file for the Java installation directory:
For example, on my system is the modified:/library/java/javavirtualmachines/jdk1.8.0_25.jdk/contents/info.plist file that will be part of this
<key>JVMCapabilities</key>
<array>
<string>CommandLine</string>
</array>
Change to the following: (mainly added 4 rows of east)
<key>JVMCapabilities</key>
<array>
<string>JNI</string>
<string>BundledApp</string>
<string>WebStart</string>
<string>Applets</string>
<string>CommandLine</string>
</array>
After the change, restart the system, and then open the Eclipse software will start normally.
2. Follow the prompts to install JDK 6:
Download the JDK installation to Apple's official page as follows:
Http://support.apple.com/kb/DL1572?viewlocale=en_US
Once installed, Java 6 is the default, and it's not a problem to start eclipse.
Resources:
Ref:http://stackoverflow.com/questions/19563766/eclipse-kepler-for-os-x-mavericks-request-java-se-6
Ref:http://www.macobserver.com/tmo/article/uninstall-or-disable-java-on-a-mac
Mac OS X "To open Eclipse, you need a Java SE 6 runtime"