MacOSX Snow Leopard和Eclipse:启动Eclipse时出错(无Java虚拟机....) [英] MacOSX Snow Leopard and Eclipse: Error starting Eclipse (No Java virtual machine....)

查看:105
本文介绍了MacOSX Snow Leopard和Eclipse:启动Eclipse时出错(无Java虚拟机....)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是非常令人沮丧的。

我没有更新java和eclipse,突然我不能打开eclipse。我甚至没有安装任何其他程序。这是错误:

I did no update of java nor eclipse and suddenly I can't open eclipse. I even didn't install any other programs. Here is the error:

我已经尝试了一切。
我更新到新的java版本,没有运气:

I've tried everything. I updated to new java version and no luck on that:

我下载了最新的eclipse,没有运气。

I downloaded the newest eclipse and had no luck.

然后我更新了eclipse的Info.plist文件:

Then I updated eclipse's Info.plist file:

已添加:
< string> -vm< / string>< string> /System/Library/Frameworks/JavaVM.framework/Versions /1.6.0/Commands/java</string>

从终端:

我还能做什么?

编辑:

路径变量:

编辑2:奇怪的行为。如果我右键单击eclipse.app并浏览:Contents / MacOS / eclipse并双击它,然后终端打开,eclipse启动:

EDIT 2: Strange behavior. If I go right click on eclipse.app and navigate through: Contents/MacOS/eclipse and double click it then a terminal opens and eclipse starts:

为什么会这样。我想直接从eclipse.app运行eclipse,而不是通过Contents /.....

Why is that so. I want to run eclipse directly from eclipse.app, not through Contents/.....

编辑3:

我看到有人与我有同样的确切问题,但我还没有找到解决方案: http://www.eclipse.org/forums/index.php/t/107226/

I see that someone had the same exact problem as me but I haven' find the solution yet: http://www.eclipse.org/forums/index.php/t/107226/

推荐答案

可以,经过几天的努力,没有运气在这个线程和Eclipse论坛 THREAD 我为这个问题开了一个赏金,没有正确的答案。

OK, after a few days of struggling and with no luck on this thread and Eclipse forums THREAD I started a bounty for this question and had no correct answer.

我发现这个问题的解决方案(这个堆栈)。

I found a solution to this problem (this stack).

ANSWER:

您需要编辑Eclipse.app/Contents/Info.plist文件并在其中添加两行:

You need to edit the Eclipse.app/Contents/Info.plist file and add two lines in it:

没有人说这行不得不在Eclipse数组中,字符串。

Nowhere stated that this lines had to go in Eclipse array but just somewhere up as key-string.

如果您没有Xcode,请使用textedit编辑该文件:

If you don't have Xcode, edit that file with textedit:

    <key>Eclipse</key>
<array>
    <string>-vm</string>
    <string>/System/Library/Frameworks/JavaVM.framework/Home/bin/java</string>
    <string>-keyring</string>
    <string>~/.eclipse_keyring</string>
    <string>-showlocation</string>
</array>

这篇关于MacOSX Snow Leopard和Eclipse:启动Eclipse时出错(无Java虚拟机....)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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