Eclipse IDE无法使用JVM Terminated启动。退出代码= -1 [英] Eclipse IDE fail to launch with JVM Terminated. Exit code=-1
问题描述
我遇到Eclipse IDE无法启动时出现以下错误消息的问题:JVM已终止。退出代码= -1
经过一些谷歌搜索,我'我无意中找到了解决方案,并能够正确启动IDE。我所做的是将eclipse.ini中的-Xmx JVM参数设置为低于指定的默认值(-Xmx512m)的值。虽然我能够启动IDE,但我很好奇它为什么会发生以及为什么这个解决方案有效。
以下是一些环境信息:
Eclipse IDE: eclipse-rcp-galileo-SR1-win32
JVM: Java(TM)SE运行时环境(版本1.6。 0_10-b33)
物理内存: 2GB
启动时可用内存> 1GB。
最初,我将值更改为256m并且Eclipse正确启动,经过一些实验后我发现它正确启动,直到设置为348m。但是,一旦将值设置为349m,我将看到一个包含上述错误消息的对话框。完整的消息是:
JVM终止。退出代码= -1
-Dosgi.requiredJavaVersion = 1.5
-Xmx349m
-XX:MaxPermSize = 256m
-Djava.class.path = C:\tools\eclipse -rcp-galileo-SR1-win32 \ eclipse \plugins / org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
-os win32
-ws win32
-arch x86
-showsplash C:\tools\eclipse-rcp-galileo-SR1-win32 \ eclipse \\plugins\org.eclipse.platform_3.3.201.v200909170800\plash.bmp
- 启动器C:\tools\eclipse-rcp-galileo-SR1-win32 \ eclipse \ eclipse.exe
-name Eclipse
--launcher.library C:\tools\eclipse- rcp-galileo-SR1-win32 \ eclipse \plugins / org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519\eclipse_1206.dll
-startup C:\tools\eclipse -rcp-galileo-SR1-win32 \ eclipse \plugins / org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
-product org.eclipse.epp.package.rcp.product
- vm c:\tools\java6\bin\..\ jr e\bin\client\jvm.dll
-vmargs
-Dosgi.requiredJavaVersion = 1.5
-Xmx349m
-XX:MaxPermSize = 256m
-Djava .class.path = C:\tools\eclipse-rcp-galileo-SR1-win32 \ eclipse \plugins / org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
有没有人知道为什么会发生这种情况?
谢谢。
试试这个
C: \ dev\IDE\eclipse332\eclipse.exe -vm C:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
$ b
我也有更多内存的问题。但这对我有用。
对不起,我不知道如何正确配置它。
I was having an issue with Eclipse IDE failing to launch with following error message: "JVM Terminated. Exit code=-1"
After some googling, I've semi-unintentionally found the solution and was able to get the IDE to launch correctly. What I did was to set -Xmx JVM argument in eclipse.ini to a value that is lower than the default value specified (-Xmx512m). Although I was able to get the IDE to launch, I was curious as to why it was happening and why this solution worked.
Here are some environment info:
Eclipse IDE: eclipse-rcp-galileo-SR1-win32
JVM: Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Physical Memory: 2GB
Available memory at launch time for >1GB.
Initially, I changed the value to 256m and Eclipse launch correctly and after some experiment I found out that it launches correctly until it is set to 348m. However, once the value is set to 349m, I get a dialog with the above error message. The full message is:
JVM terminated. Exit code=-1
-Dosgi.requiredJavaVersion=1.5
-Xmx349m
-XX:MaxPermSize=256m
-Djava.class.path=C:\tools\eclipse-rcp-galileo-SR1-win32\eclipse\plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
-os win32
-ws win32
-arch x86
-showsplash C:\tools\eclipse-rcp-galileo-SR1-win32\eclipse\\plugins\org.eclipse.platform_3.3.201.v200909170800\splash.bmp
-launcher C:\tools\eclipse-rcp-galileo-SR1-win32\eclipse\eclipse.exe
-name Eclipse
--launcher.library C:\tools\eclipse-rcp-galileo-SR1-win32\eclipse\plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519\eclipse_1206.dll
-startup C:\tools\eclipse-rcp-galileo-SR1-win32\eclipse\plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
-product org.eclipse.epp.package.rcp.product
-vm c:\tools\java6\bin\..\jre\bin\client\jvm.dll
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xmx349m
-XX:MaxPermSize=256m
-Djava.class.path=C:\tools\eclipse-rcp-galileo-SR1-win32\eclipse\plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
Does anyone have any idea or clue as to why this may be happening??
Thank you.
Try out this one
C:\dev\IDE\eclipse332\eclipse.exe -vm C:\dev\JDK\j2sdk1.4.2_06\bin\javaw.exe -vmargs -Xmx1024M -Xms512M
I also had problems with more memory. But this was working for me. I am sorry, but i do not know how to configure it correctly.
这篇关于Eclipse IDE无法使用JVM Terminated启动。退出代码= -1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!