Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse startup Error code=1?

I just downloaded eclipse-java-helios-SR2-win32-x86_64.zip extracted the zip. When i'm trying to run i get error:

Click to see the error

Here is my .ini file:

-startup
plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.2.R36x_v20101222
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx384m

I'm runing on Windows 7 64bit (Yes i downloaded the 64bit JDK and 64bit Eclipse)

like image 631
Danpe Avatar asked Dec 10 '25 20:12

Danpe


2 Answers

The JVM being used by Eclipse for startup is somehow C:\Windows\system32\javaw.exe. I do not think that this what you intended to use.

To specify the JVM to be used by Eclipse, add the following line to the eclipse.ini file:

-vm <location of javaw.exe of your JAVA_HOME>

The above line would ideally have to be present before the line where your vmargs are specified.

like image 189
Vineet Reynolds Avatar answered Dec 12 '25 08:12

Vineet Reynolds


I just had this problem after updating from Java 7u17 to Java 7u21. I first tried editing eclipse.ini, but that did't work. I then re-downloaded and re-installed the JRE and then it worked!

I'm guessing the JRE install was somehow corrupted, and so Eclipse tried to use the fallback jvm of C:\Windows\System32\java.exe

Hope this helps others with the same issue.

like image 30
vewert Avatar answered Dec 12 '25 09:12

vewert



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!