Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 343028

Summary: Startup fails, java returns exit code=13
Product: [Eclipse Project] Platform Reporter: Nathanael Smith <Nathan_Smith>
Component: IDEAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: critical    
Priority: P3 CC: daniel_megert, Lars.Vogel, pwebster, sch11033
Version: 3.6.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Shows the error message I receive while trying to open Eclipse none

Description Nathanael Smith CLA 2011-04-15 23:50:42 EDT
Build Identifier: 

I have been using a working version of Eclipse 3.3.1.1 for two or three years. Recently, I tried to install Eclipse on a new computer, and on an instance at Amazon Web Services. I tried to install several versions of eclipse, but encountered the same problem. Startup fails. The error message I get is (some version of) the following:

Java was started but returned exit code=13
C:\Java\jdk1.6.0_21\bin\javaw.exe
-Xms40m
-Xms512m
-XX:MaxPermSize=256M
-jar
C:\Users\staples\Downloads\eclipse-jee-helios-SR2-win32-x86_64\eclipse\plugins\org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
-os win32
-ws win32
-arch x86_64
-showsplash
-launcher
C:\Users\staples\Downloads\eclipse-jee-helios-SR2-win32-x86_64\eclipse\eclipse.exe
-name Eclipse
--launcher.library
C:\Users\staples\Downloads\eclipse-jee-helios-SR2-win32-x86_64\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.2.R36x_v20101222\eclipse_1312.dll
-startup
C:\Users\staples\Downloads\eclipse-jee-helios-SR2-win32-x86_64\eclipse\plugins\org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
-exitdata a80_78
-vm C:\Java\jdk1.6.0_21\bin\javaw.exe
-vmargs
-Xms40m
-Xms512m
-XX:MaxPermSize=256M
-jar
C:\Users\staples\Downloads\eclipse-jee-helios-SR2-win32-x86_64\eclipse\plugins\org.eclipse.equinox.launcher_1.1.1.R36x_v201011122_1400.jar

Now, the home page advises newcomers to read http://wiki.eclipse.org/Eclipse.ini 
 to solve problems a bit like this. I'm sorry, but that's not much help. It begins "by default, eclipse.ini contains something like..." and then it lists a stream of code quite different from what is in the downloads. I tried cutting and pasting the code from that article into my eclipse.ini, substituting the url for my own JVM. Nothing works. When I cut-and-paste the text into new instances of Eclipse from my version of Eclipse that is working, that doesn't help either. Unfortunately the article doesn't explain what the text in eclipse.ini *means.*

I am mystified as to why my old instance of Eclipse works and the new ones don't, no matter what I do, including when I apparently do exactly the same thing.

Reproducible: Always

Steps to Reproduce:
1. Download Eclipse onto my machine
2. Try to alter Eclipse.ini to make Eclipse find the JVM
3. Errors occur, usually this exit code=13 error
Comment 1 Dani Megert CLA 2011-04-18 02:45:08 EDT
It looks like you downloaded the 64 bit version of Eclipse. If so, make sure you also have a 64 bit JRE installed.
Comment 2 Nathanael Smith CLA 2011-04-19 09:59:28 EDT
OK, that fixed it. I had seen on various websites the advice that the problem might be that I had the wrong JRE installed, but I thought it meant I needed Java 5 or Java 6 or something, that new versions of Eclipse weren't compatible with old versions of Java. But they said they were. I didn't think of the 32-bit/64-bit problem. Thanks a lot!
Comment 3 Dani Megert CLA 2011-04-19 10:02:21 EDT
.
Comment 4 Sarah Schmutz CLA 2015-02-25 23:17:49 EST
Created attachment 251124 [details]
Shows the error message I receive while trying to open Eclipse

When I open Eclipse this error message shows up and won't let me open Eclipse.  I updated my Java but it still isn't working.
Comment 5 Lars Vogel CLA 2015-02-26 02:04:50 EST
.

*** This bug has been marked as a duplicate of bug 221969 ***