Eclipse在启动时崩溃。错误的eclipse.ini? [英] Eclipse crashes on start-up. Wrong eclipse.ini?

查看:123
本文介绍了Eclipse在启动时崩溃。错误的eclipse.ini?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真的很困惑我已经在Eclipse IDE中工作了很多,现在我不明白发生了什么。



我刚刚下载了最新的Eclipse分发版,无法启动它。在IDE加载之前,我收到以下消息框:

  
------- --------------------
Eclipse
--------------------- ------
JVM终止。退出代码= -1
-Dosgi.requiredJavaVersion = 1.5
-Xms40m
-Xmx512m
-XX:MaxPermSize = 256m
-Djava.class.path = D: \eclipse\plugins / org.eclipse.equinox.launcher_1.0.200.v20090520.jar
-os win32
-ws win32
-arch x86
-showsplash D:\\ \\ cl \\ --launcher.library D:\eclipse\plugins / org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519\eclipse_1206.dll
-startup D:\eclipse\plugins /org.eclipse.equinox.launcher_1.0.200.v20090520.jar
-product org.eclipse.epp.package.jee.product
-vm C:\Program Files\Java\jre6\\ \\bin\client\jvm.dll
-vmargs
-Dosgi.requiredJavaVersion = 1.5
-Xms40m
-Xmx512m
-XX:MaxPermSize = 256m
-Djava.class.path = D:\eclipse\plugins / org.eclipse.equinox.launcher_1.0.200.v20090520 .jar
---------------------------
ОК
-------- -------------------

我不能找到任何其他日志。我没有改变或修改任何东西。只需解压档案。



最初我的eclipse.ini是:

  
-startup
plugins / org.eclipse.equinox.launcher_1.0.200.v20090520.jar
--launcher.library
plugins / org.eclipse.equinox.launcher.win32 .win32.x86_1.0.200.v20090519
-product
org.eclipse.epp.package.jee.product
--launcher.XXMaxPermSize
256M
-showsplash $

$ m

$ b

我以为这个换行符的名称和值之间有一个问题。所以我删除了新的行(但根据 this ,实际上是一个错误的举动)。所以我的eclipse.ini现在看起来像这样,我可以运行它

  
-startup plugins / org.eclipse.equinox.launcher_1.0.200.v20090520.jar
--launcher.library plugins / org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product org.eclipse.epp.package.jee.product
--launcher.XXMaxPermSize 256M
-showsplash org.eclipse.platform
--launcher.XXMaxPermSize 256m
-vmargs
-Dosgi.requiredJavaVersion = 1.5
-Xms40m
-Xmx512m


$ b $我去了几个小时。似乎只有我有这个问题。我相信Eclipse应该没有这些eclipse.ini的修改(特别是考虑到它们是不正确的事实)。任何提示都非常感谢!



PS:我正在运行Vista,所有防火墙和防病毒软件都关闭。

解决方案

启动器将每行解析为单独的参数,新行是必需的。解析后,

  {--launcher.XXMaxPermSize,256M} 

不一样

  { --launcher.XXMaxPermSize 256M} 

第一个被识别为参数,第二个不被认为是



从.ini文件中删除新行后,您的参数都不会被识别,并且启动器会使用默认值。既然这对你有用,这意味着你原来的.ini里的一个论据阻止了它的启动。



在运行任何eclipse java代码之前,使用-1退出的jvm是一个非常早的错误,所以问题不应该是-startup,--launcher.library, -product或-showsplash。 -Xmx,-Xms和--launcher.XXMaxPermSize是最有可能的候选者。为什么有两个XXMaxPermSize? (虽然启动器只能通过一个,所以我不知道那件事)。


I'm really confused. I've worked with Eclipse IDE a lot and now I don't understand what's happening.

I've just downloaded latest Eclipse distributive and cannot start it. I'm getting the following message box before the IDE is even loaded:


---------------------------
Eclipse
---------------------------
JVM terminated. Exit code=-1
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-Djava.class.path=D:\eclipse\plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
-os win32
-ws win32
-arch x86
-showsplash D:\eclipse\\plugins\org.eclipse.platform_3.3.200.v200906111540\splash.bmp
-launcher D:\eclipse\eclipse.exe
-name Eclipse
--launcher.library D:\eclipse\plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519\eclipse_1206.dll
-startup D:\eclipse\plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
-product org.eclipse.epp.package.jee.product
-vm C:\Program Files\Java\jre6\bin\client\jvm.dll
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-Djava.class.path=D:\eclipse\plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar 
---------------------------
ОК   
---------------------------

I cannot find any additional logs. I haven't changed or modified anything. Just unzipped the archive.

Initially my eclipse.ini was:


-startup
plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
org.eclipse.epp.package.jee.product
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m

I thought that there is a problem with this newlines between name and value of the parameters. So I removed new lines (but according to this it's actually a wrong move). So my eclipse.ini is now looks like this and I'm able to run it:


-startup plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
--launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product org.eclipse.epp.package.jee.product
--launcher.XXMaxPermSize 256M
-showsplash org.eclipse.platform
--launcher.XXMaxPermSize 256m
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m

I googled for several hours. It seems only I have this problem. I believe Eclipse should work without these modifications of eclipse.ini (especially taking into account the fact they are incorrect). Any hints are much appreciated!

PS: I'm running Vista, all firewalls and antiviral software is off.

解决方案

The launcher parses each line as a separate argument, the new lines are required. After parsing,

{ "--launcher.XXMaxPermSize", "256M" }

is not the same as

{ "--launcher.XXMaxPermSize 256M" }

The first is recognized as an argument, the second isn't.

After removing the new-lines from the .ini file, none of your arguments will be recognized and the launcher resorts to defaults. Since this works for you, this implies that one of your arguments in the original .ini is preventing it from starting.

The jvm exiting with -1 is a very early error, before running any eclipse java code so the problem shouldn't be the -startup, --launcher.library, -product or -showsplash. The -Xmx, -Xms and --launcher.XXMaxPermSize are the most likely candidates. Why is there two XXMaxPermSize? (though the launcher only passes one through, so I'm not sure that matters).

这篇关于Eclipse在启动时崩溃。错误的eclipse.ini?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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