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

Bug 367106

Summary: Java starts but Eclipse doesn't start (returned exit code=13 in Windows 7 64 bits with JRE 1.6.0_30)
Product: [Eclipse Project] Platform Reporter: ggdb
Component: RuntimeAssignee: platform-runtime-inbox <platform-runtime-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: remy.suen
Version: 3.7.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
The first exit window with code 13
none
The second exit window with exit code 13 none

Description ggdb CLA 2011-12-19 12:15:58 EST
Build Identifier: Unkown. Eclipse version: 3.7.0

Similar bug was reported in bug 348346, but it is not exatly the same.

I am using a PC with Windows 7 64 bits.
I am using Java 1.6.30:
C:\Users\user1>java -version
java version "1.6.0_30"
Java(TM) SE Runtime Environment (build 1.6.0_30-b12)
Java HotSpot(TM) Client VM (build 20.5-b03, mixed mode, sharing)

I have downloaded eclipse-SDK-3.7.1-win32-x86_64.zip, unzipped it in C:, so that eclipse folder is C:\eclipse and then run C:\eclipse\eclipse.exe.

Then I got a message that eclipse could not find JVM. So I have modified system.ini to include VM in the following way:
-startup
plugins\org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins\org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
C:\Program Files (x86)\Java\jre6\bin\javaw.exe
-vmargs
-Xms40m
-Xmx384m

I obtain "returned exit code=13" and I notice that the options -startup, -jar and --launcher-library have a double slash (C:\eclipse\\plugins\...). Then I changed again system.ini to the following:
-startup
C:\eclipse\plugins\org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
C:\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
C:\Program Files (x86)\Java\jre6\bin\javaw.exe
-vmargs
-Xms40m
-Xmx384m

I obtain "returned exit code=13" again.

Reproducible: Always

Steps to Reproduce:
1. Unzip eclipse in a Windows 7 64 bits with Java 1.6.0_30
2. Change system .ini to specify JVM with the -vm option
3. Run eclipse.exe
Comment 1 ggdb CLA 2011-12-19 12:31:54 EST
Created attachment 208570 [details]
The first exit window with code 13
Comment 2 ggdb CLA 2011-12-19 12:32:36 EST
Created attachment 208572 [details]
The second exit window with exit code 13
Comment 3 Remy Suen CLA 2011-12-19 12:44:18 EST
(In reply to comment #0)
> I have downloaded eclipse-SDK-3.7.1-win32-x86_64.zip, unzipped it in C:, so
> that eclipse folder is C:\eclipse and then run C:\eclipse\eclipse.exe.

You have downloaded the 64-bit version of Eclipse.

> -vm
> C:\Program Files (x86)\Java\jre6\bin\javaw.exe

Yet you are using the 32-bit version of Java.

The two has to match.