Mac上的Eclipse 10.8 - 安装了1.7.0 JRE / JDK,但Eclipse不会启动 [英] Eclipse on Mac 10.8 - Installed 1.7.0 JRE / JDK, but Eclipse won't launch

查看:122
本文介绍了Mac上的Eclipse 10.8 - 安装了1.7.0 JRE / JDK,但Eclipse不会启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  • 从Oracle安装Java SE 1.7.0u10,安装程序包


  • 下载并解压缩Eclipse Juno双击Eclipse紫色图标并获取OS X警报提示符,并显示错误消息:


  • / ul>


    要打开Eclipse,您需要一个Java SE 6运行时。你想要
    现在安装一个?





    • (终端)哪个java - / usr / bin / java


    • p> ls -l / usr / bin / java - / usr / bin / java - > /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java


    • (在Finder中)双击eclipse别名(在解压缩下载时包含) - 终端启动, /Applications/Eclipse/Eclipse.app/Contents/MacOS/eclipse;退出; ,Exclipse启动时没有OS X警报提示。




    Eclipse应用程序捆绑包将-vm键指向/System/Library/Frameworks/JavaVM.frameworks/Versions/Current/Commands/java,但我觉得我可能不应该这样做。



    我想知道如何通过双击应用程序包来启动Eclipse。这是一个很小的事情,我错了我...:o)

    解决方案

    我发现答案在不同的



    这是一个丑陋的黑客,但完美无缺。


    • Installed Java SE 1.7.0u10 from Oracle w/ their installer package

    • Downloaded and unpacked Eclipse Juno (4.2.1)

    • Double click Eclipse purple icon and get OS X alert prompt with error message:

    To open "Eclipse," you need a Java SE 6 runtime. Would you like to install one now?

    • (in terminal) which java - /usr/bin/java

    • ls -l /usr/bin/java - /usr/bin/java -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java

    • (in Finder) Double click eclipse alias (included when unpacked download) - Terminal launches, /Applications/Eclipse/Eclipse.app/Contents/MacOS/eclipse ; exit ; and Exclipse launches without OS X alert prompt.

    I've tried modifying the Eclipse app bundle plist to point the -vm key to /System/Library/Frameworks/JavaVM.frameworks/Versions/Current/Commands/java, but I feel like I probably shouldn't have to do this.`

    I'd like to know how to get Eclipse to launch by just double clicking on the Application package. It's such a small thing to bug me... :o)

    解决方案

    I found the answer over on Ask Different

    It's an ugly hack, but works perfectly.

    这篇关于Mac上的Eclipse 10.8 - 安装了1.7.0 JRE / JDK,但Eclipse不会启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆