Eclipse Helios 未启动

发布于 2024-09-24 08:30:34 字数 916 浏览 4 评论 0原文

一年前,我曾经使用过 Eclipse,没有出现任何问题,但我将 Helios 下载到了一台当前装有 Windows Vista 和 Java 1.6.13 的新计算机上。我提取该文件夹并尝试运行 Eclipse EXE,但收到错误消息“Java 已启动但返回退出代码 = 13”。

我做了一些挖掘,发现配置文件需要 Java 1.5 才能启动 (dosgiRequiredJavaVersion=1.5)。删除这一行并不重要。

我去获取了 1.5.0_22 的存档副本,并尝试在 vmargs 之前的配置文件中使用 -vm mypath/java/jre1.5.0_22/bin ,但它仍然没有帮助。

我还尝试创建快捷方式并在属性的目标字段中指定“eclipse -vm mypath”,但仍然没有任何结果。

这是我的配置设置,但仍然出现错误:

-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

有人解决了这个问题吗?

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".

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.

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.

I have also tried making a shortcut and specified the "eclipse -vm mypath" in the target field of properties and still nothing.

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

一身骄傲 2024-10-01 08:30:34

当将 x86 Eclipse 与 x64 JDK 一起使用时会发生这种情况(反之亦然)。
只需在 eclipse.ini 文件中指向与 Eclipse 具有相同架构的 JDK,例如:

-vm
D:/Dev/Java/jdk1.6.0_25_x86/jre/bin/javaw.exe

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:

-vm
D:/Dev/Java/jdk1.6.0_25_x86/jre/bin/javaw.exe
儭儭莪哋寶赑 2024-10-01 08:30:34

我也有同样的问题。

我使用的是 Windows Vista 64,带有 64 位版本的 Helios 和 JDK/JRE 1.6 update 14。我一直在使用 Eclipse Galileo。

升级到 JDK/JRE 1.6 update 24(截至目前的最新版本)解决了该问题。我不必对 Helios eclipse.ini 文件进行任何更改。

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.

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.

青芜 2024-10-01 08:30:34

如果这种情况在您的 eclipse 和 java 安装看似没有发生任何变化时开始发生,并且有可能在系统 (Windows) 崩溃或 eclipse 意外关闭后开始发生这种情况,则问题可能是由于eclipse.exe 的兼容模式。当系统或eclipse崩溃时,无论你喜欢与否,Windows可能已经决定更改eclipse.exe的兼容模式。

不幸的是,无法通过文件属性上的“兼容性”选项卡更改此模式。必须通过编辑注册表来进行更改。查找两个键:

  • HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Compatibility Assistant\Persisted
  • HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers

查找 eclipse.exe 的任何条目。我从每个位置删除了一个,这解决了我的问题。

兼容性信息与文件名相关联,并且即使文件本身被删除或移动,也会保留在注册表中。这就是为什么改变eclipse目录的位置就能解决问题。这也意味着在同一位置重新安装 Eclipse 不会解决问题,因为注册表项仍然存在。

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.

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

Look for any entries for eclipse.exe. I deleted one from each location and this solved the problem for me.

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.

萌逼全场 2024-10-01 08:30:34

好的,所以我遇到了这个问题,更新不起作用,我修复了它,因为显然我的计算机没有指向正确的位置或感到困惑

我有一台 32 位机器和 32 位 java

我的桌面上有 eclipse 文件夹,它给了我这个错误,

我只是将 eclipse 文件夹移动到程序文件中,它就工作了,不知道为什么

希望这有助于运气!

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

I had the eclipse folder on my desktop and it gave me this error

I simply moved the eclipse folder to program files and it worked, no idea why

Hopefully that helped gud luck!

攒一口袋星星 2024-10-01 08:30:34

对我来说,将开关 -VM 放在 eclipse.ini 文件的开头。另外,尽管我有 64 位 Win 7,但 Java 和 Eclipse 都是 32 位版本。

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.

酒几许 2024-10-01 08:30:34

我在 64 位 Windows 7 上的 Eclipse Indigo 上也遇到了同样的问题。错误消息是“Java 已启动但返回退出代码=1”。

更新到最新的 JRE 1.6 update 29 修复了这个问题。

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".

Updating to latest JRE 1.6 update 29 fixed it.

走过海棠暮 2024-10-01 08:30:34

将文件夹移至 Program Files 中。这解决了我的错误代码 13 的问题。

Move the folder in your Program Files. That fixed my problem with the error code 13.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文