I have used Eclipse in the past without problems over a year ago, but I downloaded Helios onto a new computer having Windows Vista and Java 1.6.13 currently. I extract the folder and try to run the Eclipse EXE and get an error stating "Java was started but returned exit code=13".
I did some digging and it appears that the config file is requiring Java 1.5 to launch (dosgiRequiredJavaVersion=1.5). Removing this line does not matter.
I went and got an archived copy of 1.5.0_22 and tried to use -vm mypath/java/jre1.5.0_22/bin in the config file before vmargs and it still does not help.
I have also tried making a shortcut and specified the "eclipse -vm mypath" in the target field of properties and still nothing.
Here are my config settings which still give the error:
-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.0.v20100503
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
c:\program files\java\jre1.5.0_22\bin
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx384m
Has anyone solved this problem?
This occurs when using an x86 Eclipse with a x64 JDK (and perhaps vice-versa). Just point to a JDK with the same architecture as your Eclipse in your eclipse.ini file, eg:
-vm
D:/Dev/Java/jdk1.6.0_25_x86/jre/bin/javaw.exe
I had this same problem.
I'm on Windows Vista 64, with the 64-bit versions of both Helios and the JDK/JRE 1.6 update 14. I had been using Eclipse Galileo just fine.
Upgrading to the JDK/JRE 1.6 update 24 (the latest as of this date) fixed the problem. I didn't have to make any changes to the Helios eclipse.ini file.
If this started happening when seemingly nothing has changed with respect to your eclipse and java installations, and there is a chance that this started happening after a system (Windows) crash or an unexpected eclipse shutdown, the problem may be due to a change in the compatibility mode of eclipse.exe. When the system or eclipse crashed, Windows may have decided to change the compatibility mode of eclipse.exe whether you liked it or not.
Unfortunately, this mode can not be changed through the "compatibility" tab on the file properties. The change has to be made by editing the registry. Look for the two keys:
- HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Compatibility Assistant\Persisted
- HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
Look for any entries for eclipse.exe. I deleted one from each location and this solved the problem for me.
The compatibility information is tied to the file name and is persisted in the registry even if the file itself is deleted or moved. This is why changing the location of the eclipse directory will solve the problem. This also means that reinstalling eclipse in the same location will not fix the problem since the registry entry will still be there.
ok, so i had this problem and updating did not work, i fixed it because apparently my computer didnt point to the right place or got confused
I have a 32 bit machine and the 32 bit java
I had the eclipse folder on my desktop and it gave me this error
I simply moved the eclipse folder to program files and it worked, no idea why
Hopefully that helped gud luck!
For me worked placing the switch -VM at the beginning of the eclipse.ini
file. Plus having both Java and Eclipse in 32-bit version, even though I have 64-bits Win 7.
I also had the same issue with Eclipse Indigo on 64-bit Windows 7. The error message was "Java was started but returned exit code=1".
Updating to latest JRE 1.6 update 29 fixed it.
Move the folder in your Program Files
. That fixed my problem with the error code 13.
来源:https://stackoverflow.com/questions/3781124/eclipse-helios-not-launching