After the mac OS is upgraded to Mountain Lion, eclipse cannot find the JRE.

Source: Internet
Author: User


After the mac OS is upgraded to Mountain Lion, eclipse cannot find the JRE and does not know why. After the upgrade, click eclipse and the prompt "no Java" is displayed. So install the java development environment provided by Apple https://developer.apple.com/downloads/index.action selected Java for OS X 2012-004 Developer Package download, installation. Run eclipse again. At the same time, the Android project can be compiled and run. However, normal java projects cannot be compiled, and the preference setting of Eclipse prompts that there is no JRE setting. Using preference settings --> Java --> Installed JREs cannot find the JRE home directory identified in jre eclipse in the format... /Contents/Home www.2cto.com to view the java path java->/System/Library/Frameworks/JavaVM. framework/Versions/Current/Commands/java VM path. /Library/Java/JavaVirtualMachines, but this directory contains only one 1.6.0 _ 33-b03-mongo.jdk file. Double-click the file to display the java preference settings in the system tool .. Finally, right-click the jdk file and choose "show Package content" to view the Contents/Home structure. Copy the Contents folder and place it in the directory of the jdk file level. Then, return to eclipse, in jre settings, navigate the jre directory to this folder .... Yes... Why ~~ Author Zxlong

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.