Eclipse crashes on startup. Invalid eclipse.ini?

I'm really confused. I worked a lot with the Eclipse IDE, and now I do not understand what is happening.

I just downloaded the latest Eclipse distribution and cannot start it. I get the following message box before the IDE boots up:


---------------------------
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 can not find any additional magazines. I have not changed or modified anything. Just unzip the archive.

My original 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 there was a problem with this new line between the name and the value of the parameters. So I deleted the new lines (but according to this , this is actually the wrong move). So, my eclipse.ini now looks like this and I can 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

. , . , Eclipse eclipse.ini( , ). !

PS: Vista, .

+3
10

, .

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

{ "--launcher.XXMaxPermSize 256M" }

, - .

.ini , . , , .ini .

jvm -1 , Java- eclipse, -startup, -launcher.library, -product -showsplash. -Xmx, -Xms -launcher.XXMaxPermSize. XXMaxPermSize? ( , , ).

+4

, 64- Vista 32- Eclipse:

--launcher.library D:\eclipse\plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519\eclipse_1206.dll

64- JVM:

-vm C:\Program Files\Java\jre6\bin\client\jvm.dll

. JVM , , , - , Eclipse.

- 32- JVM ( , 64- PATH), 64- Eclipse. p >

+5

Eclipse ( )

: .snap . .metadata/.plugins/org.eclipse.core.resources

, ( )

+2

:

1/ eclipse.ini
2/ eclipse.ini: eclipse .

, .

+1

Eclipse? ( ..), Eclispe, , , . ( ., ( !) .

+1

, : http://www.eclipse.org/forums/index.php?t=msg&goto=653614&S=c78decc70e6fe52540e0e2c6f4c3076f#msg_653614

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
-XX:-UseCompressedOops

, ,

+1

eclipse.ini jvm, , . , jvm -vm "--launcher.XXMaxPermSize 256m".

,

-vm  <your JVM path>
+1

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

0

. , "launcher.XXMaxPermSize 256M" eclipse.ini.

0

I installed some plugins and restarted eclipse. This was unsuccessful at startup until I added

-vm C:\env\java\jdk\jdk1_7\bin\javaw.exe

The eclipse installation worked fine before that

0
source

Source: https://habr.com/ru/post/1726494/


All Articles