Eclipse Helios 未启动
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3781124/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse Helios not launching
提问by Ken
I have used Eclipse in the past without problems over a year ago, but I downloaded Helios onto a new computer having Windows Vista and Java 1.6.13 currently. I extract the folder and try to run the Eclipse EXE and get an error stating "Java was started but returned exit code=13".
一年多以前,我曾使用 Eclipse 没有问题,但我将 Helios 下载到一台当前装有 Windows Vista 和 Java 1.6.13 的新计算机上。我提取文件夹并尝试运行 Eclipse EXE 并收到一条错误消息,指出“Java 已启动但返回退出代码 = 13”。
I did some digging and it appears that the config file is requiring Java 1.5 to launch (dosgiRequiredJavaVersion=1.5). Removing this line does not matter.
我做了一些挖掘,似乎配置文件需要 Java 1.5 才能启动 (dosgiRequiredJavaVersion=1.5)。删除此行无关紧要。
I went and got an archived copy of 1.5.0_22 and tried to use -vm mypath/java/jre1.5.0_22/bin in the config file before vmargs and it still does not help.
我去了并获得了 1.5.0_22 的存档副本,并尝试在 vmargs 之前的配置文件中使用 -vm mypath/java/jre1.5.0_22/bin ,但它仍然没有帮助。
I have also tried making a shortcut and specified the "eclipse -vm mypath" in the target field of properties and still nothing.
我也尝试制作一个快捷方式并在属性的目标字段中指定了“eclipse -vm mypath”,但仍然没有。
Here are my config settings which still give the error:
这是我的配置设置,它仍然给出错误:
-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.0.v20100503
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
c:\program files\java\jre1.5.0_22\bin
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx384m
Has anyone solved this problem?
有没有人解决过这个问题?
回答by prefabSOFT
This occurs when using an x86 Eclipse with a x64 JDK (and perhaps vice-versa). Just point to a JDK with the same architecture as your Eclipse in your eclipse.ini file, eg:
当使用带有 x64 JDK 的 x86 Eclipse 时会发生这种情况(反之亦然)。只需在 eclipse.ini 文件中指向与 Eclipse 具有相同架构的 JDK,例如:
-vm
D:/Dev/Java/jdk1.6.0_25_x86/jre/bin/javaw.exe
回答by jbass
I had this same problem.
我有同样的问题。
I'm on Windows Vista 64, with the 64-bit versions of both Helios and the JDK/JRE 1.6 update 14. I had been using Eclipse Galileo just fine.
我在 Windows Vista 64 上使用 Helios 和 JDK/JRE 1.6 更新 14 的 64 位版本。我一直在使用 Eclipse Galileo。
Upgrading to the JDK/JRE 1.6 update 24 (the latest as of this date) fixed the problem. I didn't have to make any changes to the Helios eclipse.ini file.
升级到 JDK/JRE 1.6 更新 24(截至目前的最新版本)修复了该问题。我不必对 Helios eclipse.ini 文件进行任何更改。
回答by Gus Wilhelm
If this started happening when seemingly nothing has changed with respect to your eclipse and java installations, and there is a chance that this started happening after a system (Windows) crash or an unexpected eclipse shutdown, the problem may be due to a change in the compatibility mode of eclipse.exe. When the system or eclipse crashed, Windows may have decided to change the compatibility mode of eclipse.exe whether you liked it or not.
如果在您的 eclipse 和 java 安装似乎没有任何变化时开始发生这种情况,并且有可能在系统 (Windows) 崩溃或 eclipse 意外关闭后开始发生这种情况,则问题可能是由于eclipse.exe 的兼容模式。当系统或 eclipse 崩溃时,无论您喜欢与否,Windows 可能已经决定更改 eclipse.exe 的兼容模式。
Unfortunately, this mode can not be changed through the "compatibility" tab on the file properties. The change has to be made by editing the registry. Look for the two keys:
不幸的是,无法通过文件属性上的“兼容性”选项卡更改此模式。必须通过编辑注册表来进行更改。寻找两个键:
- HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Compatibility Assistant\Persisted
- HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
- HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Compatibility Assistant\Persisted
- HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
Look for any entries for eclipse.exe. I deleted one from each location and this solved the problem for me.
查找 eclipse.exe 的任何条目。我从每个位置删除了一个,这为我解决了问题。
The compatibility information is tied to the file name and is persisted in the registry even if the file itself is deleted or moved. This is why changing the location of the eclipse directory will solve the problem. This also means that reinstalling eclipse in the same location will not fix the problem since the registry entry will still be there.
兼容性信息与文件名相关联,即使文件本身被删除或移动,它也会保留在注册表中。这就是为什么更改eclipse目录的位置可以解决问题的原因。这也意味着在同一位置重新安装 eclipse 不会解决问题,因为注册表项仍然存在。
回答by Anonymous
For me worked placing the switch -VM at the beginning of the eclipse.ini
file. Plus having both Java and Eclipse in 32-bit version, even though I have 64-bits Win 7.
对我来说,将开关 -VM 放在eclipse.ini
文件的开头。加上 Java 和 Eclipse 都是 32 位版本,即使我有 64 位 Win 7。
回答by meow
ok, so i had this problem and updating did not work, i fixed it because apparently my computer didnt point to the right place or got confused
好的,所以我遇到了这个问题并且更新不起作用,我修复了它,因为显然我的计算机没有指向正确的位置或感到困惑
I have a 32 bit machine and the 32 bit java
我有一台 32 位机器和 32 位 java
I had the eclipse folder on my desktop and it gave me this error
我的桌面上有 eclipse 文件夹,它给了我这个错误
I simply moved the eclipse folder to program files and it worked, no idea why
我只是将 eclipse 文件夹移动到程序文件并且它工作正常,不知道为什么
Hopefully that helped gud luck!
希望这对你有帮助!
回答by SidoKS
Move the folder in your Program Files
. That fixed my problem with the error code 13.
移动文件夹中的Program Files
. 这解决了我的错误代码 13 问题。
回答by arsalank2
I also had the same issue with Eclipse Indigo on 64-bit Windows 7. The error message was "Java was started but returned exit code=1".
我在 64 位 Windows 7 上使用 Eclipse Indigo 也遇到了同样的问题。错误消息是“Java 已启动但返回退出代码=1”。
Updating to latest JRE 1.6 update 29 fixed it.
更新到最新的 JRE 1.6 更新 29 修复了它。