简体   繁体   English

Eclipse IDE无法使用JVM Terminated启动。退出代码= -1

[英]Eclipse IDE fail to launch with JVM Terminated. Exit code=-1

I was having an issue with Eclipse IDE failing to launch with following error message: "JVM Terminated. Exit code=-1" 我遇到了Eclipse IDE无法启动时出现以下错误消息的问题:“JVM已终止。退出代码= -1”

After some googling, I've semi-unintentionally found the solution and was able to get the IDE to launch correctly. 经过一些谷歌搜索,我半无意间找到了解决方案,并能够让IDE正确启动。 What I did was to set -Xmx JVM argument in eclipse.ini to a value that is lower than the default value specified (-Xmx512m). 我所做的是将eclipse.ini中的-Xmx JVM参数设置为低于指定的默认值(-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. 虽然我能够启动IDE,但我很好奇它为什么会发生以及为什么这个解决方案有效。

Here are some environment info: 以下是一些环境信息:
Eclipse IDE: eclipse-rcp-galileo-SR1-win32 Eclipse IDE: eclipse-rcp-galileo-SR1-win32
JVM: Java(TM) SE Runtime Environment (build 1.6.0_10-b33) JVM: Java(TM)SE运行时环境(版本1.6.0_10-b33)
Physical Memory: 2GB 物理内存: 2GB

Available memory at launch time for >1GB. 启动时可用内存> 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. 最初,我将值更改为256m并正确启动Eclipse,经过一些实验后我发现它正确启动,直到设置为348m。 However, once the value is set to 349m, I get a dialog with the above error message. 但是,一旦将值设置为349m,我将看到一个包含上述错误消息的对话框。 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 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. 对不起,我不知道如何正确配置它。

I had the same problem. 我有同样的问题。 You must be running 64-bit Windows. 您必须运行64位Windows。 For some reason Eclipse is looking for 32-bit Java Run time so you need to download and install 32 bit version. 出于某种原因,Eclipse正在寻找32位Java运行时,因此您需要下载并安装32位版本。 Also make sure Path Variable in Environment variables is set to 32 Bit Path 还要确保环境变量中的Path Variable设置为32位路径

This blog mentions a similiar problem and provides a solution. 这篇博客提到了一个类似的问题,并提供了一个解决方案。 And he's referring to this forum thread discussing the same exit code -1 issue with eclipse. 他指的是这个讨论与eclipse相同的退出代码-1问题的论坛帖子

(Looks like I'm happy that my eclipse didn't crash like this .. yet) (看起来我很高兴我的日食没有像这样崩溃..但是)

I use the following to start eclipse. 我使用以下内容来启动eclipse。 It's working: 它的工作原理是:

E:\tools\eclipseR30\eclipse.exe -data E:\workspaces\r30 -vm C:\Java\jdk1.5.0_16\jre\bin\javaw.exe -jvmargs –Xms512M –Xmx512M

Or you can add -vm C:\\Java\\jdk1.5.0_16\\jre\\bin\\javaw.exe in eclipse.ini. 或者您可以在eclipse.ini中添加-vm C:\\Java\\jdk1.5.0_16\\jre\\bin\\javaw.exe

I managed to launch studio by editing ini and reducing XXMaxPermSize to 128m. 我设法通过编辑ini并将XXMaxPermSize减少到128m来启动工作室。

--launcher.XXMaxPermSize
128m
--launcher.defaultAction
openFile
-vmargs
-Xms512m
-Xmx1024m

I had a similar issue with my Clear Case Remote Client in Windows. 我的Windows中的Clear Case Remote Client遇到了类似的问题。

All I had to do is to open the "ccrc.ini" usually available at "C:\\Program Files\\IBM\\RationalSDLC\\clearcase\\RemoteClient" and update the below argument to refer from JRE on my desktop 我所要做的就是打开通常在“C:\\ Program Files \\ IBM \\ RationalSDLC \\ clearcase \\ RemoteClient”中可用的“ccrc.ini”并更新以下参数以从我桌面上的JRE引用

OLD Entry: -vm C:\\Program Files\\IBM\\RationalSDLC\\common\\JAVA5.0\\jre\\bin\\j9vm\\jvm.dll 旧条目: -vm C:\\ Program Files \\ IBM \\ RationalSDLC \\ common \\ JAVA5.0 \\ jre \\ bin \\ j9vm \\ jvm.dll

New Entry: -vm C:\\Program Files\\Java\\jre1.6.0_17\\bin\\javaw.exe 新条目: -vm C:\\ Program Files \\ Java \\ jre1.6.0_17 \\ bin \\ javaw.exe

With my personal experience, this issue happens for many reasons like JVM Supported version, Heap size allocation, change in eclipse ini file that doesn't match with the System configurations, etc. 根据我的个人经验,出现此问题的原因有很多,例如JVM支持版本,堆大小分配,eclipse ini文件中与系统配置不匹配的更改等。

I faced the same such issue for one reason, Increased my Maximum heap size to -Xmx1024m from -Xmx256m in my eclipse.ini file for some heap size issue. 我遇到了同样的问题,原因之一是,我的eclipse.ini文件中的-Xmx256m将我的最大堆大小增加到-Xmx1024m,以解决一些堆大小问题。

But after some time it started giving me issue stating "Eclipse IDE fail to launch with JVM Terminated. Exit code=-1" . 但过了一段时间后,它开始给我一个问题,说“Eclipse IDE无法启动,JVM终止。退出代码= -1” I think it happened because of my available heap size in my system was not sufficient to open the Eclipse due to the other processes that was running in my System. 我认为这是因为我的系统中可用的堆大小不足以打开Eclipse,因为我的系统中正在运行其他进程。 Just for a quick fix i changed the -Xmx1024m to -Xmx512m and then it started working fine. 只是为了快速修复我将-Xmx1024m更改为-Xmx512m然后它开始正常工作。

-Karthik Kornalies -Karthik Kornalies

i had same issue . 我有同样的问题。 I have 64 bit windows 7.I un-installed 64bit java and jre . 我有64位Windows 7.I未安装64位java和jre。 tried with 32 bit java and jre and issue has been fixed. 尝试使用32位java和jre并且问题已修复。

Try out these things: 试试这些东西:

  1. First set the proper requirements as per your RAM size in the ini file. 首先根据ini文件中的RAM大小设置正确的要求。

  2. Check whether you have the proper version of the JVM and the class path is set correctly in your environment variables as well as the one in the ini file. 检查您是否具有正确版本的JVM,并在环境变量中正确设置类路径以及ini文件中的类路径。

  3. Try running it from the command prompt rather than double clicking on the exe. 尝试从命令提示符运行它,而不是双击exe。

@blissfool: You are getting this error because available user heap might be lesser than the heap mentioned(ie 512 mb). @blissfool:您收到此错误,因为可用的用户堆可能小于提到的堆(即512 MB)。 That's why this was working when you reduced the heap size. 这就是为什么当你减小堆大小时这是有效的。

Verify your Java/JDK/Jre installation path. 验证Java / JDK / Jre安装路径。 The identical problem was resolved on Ubuntu by running: 通过运行以下命令在Ubuntu上解决了同样的问题:

$ sudo update-alternatives --config java

Then picking an alternate of the multiple java version installations. 然后选择多个java版本安装的替代。 Apparently one has some flaw. 显然有人有一些缺陷。

Ubuntu's update-alternatives sets all the needed path values automatically in Linux. Ubuntu的update-alternatives在Linux中自动设置所有需要的路径值。 For Windows, you might have to check them manually or perform new JDK/Jre installation to ensure the installation and path integrity. 对于Windows,您可能必须手动检查它们或执行新的JDK / Jre安装以确保安装和路径完整性。

cannot-run-eclipse-jvm-terminated-exit-code-13 不能运行-Eclipse的JVM封端的退出代码-13

Above error can be resolved in simple way. 上述错误可以通过简单的方式解决。

1.Have a look in system variable path. 1.看看系统变量路径。 We will get: 我们将得到:

C:\ProgramData\Oracle\Java\javapath; 

2.Remove or delete from "path" and check java version on cmd prompt , it should match with your java home. 2.从“path”中删除或删除并在cmd提示符下检查java版本,它应该与你的java home匹配。 Now start eclipse, and it will work. 现在开始eclipse,它会起作用。

I managed to fix this by installing 32-bit JRE. 我设法通过安装32位JRE来解决这个问题。 Looks like eclipse is looking for 32-bit version 看起来eclipse正在寻找32位版本

i got this JVM terminated. 我把这个JVM终止了。 Exit code=-1 message to, after alot of google search i found out that my eclipse was only for 32 bit(europe 3.3.2) and i had windows 64 bit, so the path to my jdk was to my 64 bit programfiles folder, not to programfile(x86) folder and i changed that in my eclipse.ini to: 退出代码= -1消息,经过很多谷歌搜索我发现我的日食只有32位(欧洲3.3.2),我有Windows 64位,所以我的jdk的路径是我的64位programfiles文件夹,而不是programfile(x86)文件夹,我在我的eclipse.ini中将其更改为:

-showsplash org.eclipse.platform --launcher.XXMaxPermSize 256M -vm C:\\Program Files (x86)\\Java\\jdk1.7.0\\jre\\bin\\server\\jvm.dll -vmargs -Dosgi.requiredJavaVersion=1.7 -Xms40m -Xmx256m -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256M -vm C:\\ Program Files(x86)\\ Java \\ jdk1.7.0 \\ jre \\ bin \\ server \\ jvm.dll -vmargs -Dosgi.requiredJavaVersion = 1.7 -Xms40m - Xmx256m

i dont know if its ontopic but if someone get the same message i hope this helps:) 我不知道它的ontopic,但如果有人得到相同的消息,我希望这有助于:)

I was also getting the same error, you can fix it by following the below steps. 我也遇到了同样的错误,您可以按照以下步骤进行修复。

  1. Open the 'eclipse.ini' file in the notepad 打开记事本中的'eclipse.ini'文件
  2. Search for '-vm' if found change the value as '-vm C:\\Program Files\\Java\\jdk1.6.0_23\\jre\\bin\\javaw.exe' (depending on your java installation path) 搜索'-vm'如果找到将值更改为'-vm C:\\ Program Files \\ Java \\ jdk1.6.0_23 \\ jre \\ bin \\ javaw.exe'(取决于您的java安装路径)
  3. if you didn't find '-vm' in the 'eclipse.ini' file, then add the '-vm C:\\Program Files\\Java\\jdk1.6.0_23\\jre\\bin\\javaw.exe', anywhere I pasted under the '-showsplash'. 如果你没有在'eclipse.ini'文件中找到'-vm',那么在我粘贴的任何地方添加'-vm C:\\ Program Files \\ Java \\ jdk1.6.0_23 \\ jre \\ bin \\ javaw.exe'在'-showsplash'下。
  4. launch the eclipse, by clicking on the 'eclipse.exe'. 点击'eclipse.exe'启动eclipse。

Let me know if still not working! 如果还没有工作,请告诉我!

I downloaded the latest visual studio redistributable package at http://www.microsoft.com/en-us/download/details.aspx?id=5555 and it seems to resolve the issue. 我在http://www.microsoft.com/en-us/download/details.aspx?id=5555下载了最新的visual studio redistributable软件包,似乎解决了这个问题。 I DL both the 32bit and 64bit for what it was worth. 我认为32位和64位都是值得的。

It looks JVM problem. 它看起来像JVM问题。 You can try to download JRockit and set your env variable to JRockit JVM. 您可以尝试下载JRockit并将您的env变量设置为JRockit JVM。 It should fix the problem. 它应该解决问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM