Mac OS X "To open Eclipse, you need a Java SE 6 runtime"

Source: Internet
Author: User
Tags java se 6 runtime java se



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"


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.