Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 45643 - Eclipse can not start
Summary: Eclipse can not start
Status: RESOLVED DUPLICATE of bug 38871
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 2.1.1   Edit
Hardware: PC Windows 2000
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-27 20:01 EST by Hong Deng CLA
Modified: 2003-10-28 13:49 EST (History)
1 user (show)

See Also:


Attachments
show version program (884 bytes, application/octet-stream)
2003-10-28 12:05 EST, Rafael Chaves CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hong Deng CLA 2003-10-27 20:01:27 EST
After unzip eclipse and try to start eclipse,There is "Eclipse", which says,
JVM terminated, exit code =1, c:\WINNT\system32\javaw.exe -cp 
c:\eclipse\startup.jar org.eclipse.core.launcher. Main -os win32 -ws win32 -
arch x86 -showsplash c:\eclipse\eclipse.exe -showsplash 600
Comment 1 Rafael Chaves CLA 2003-10-27 21:01:28 EST
Which Java VM are you running on? Eclipse requires a 1.4-level VM.

Also, the safest way to run Eclipse is to explicitly specify which VM to run on
(instead of running with the one that is in the system path). For instance:

eclipse -vm <JAVA_HOME>/jre/java.exe



Comment 2 Hong Deng CLA 2003-10-27 21:20:14 EST
Yes, it works to start Eclipse -vm <javaHome>\j2sdk1.4.2\jre\bin\java.exe
Comment 3 Hong Deng CLA 2003-10-27 21:30:39 EST
in my computer, the jre installed is 1.4.2_01,
it works to start Eclipse like, eclipse -vm <Java-HOme>\jre\bin\java.exe
however, to start eclipse direcly, still not work, and same message,like
JVM terminated, Exit code = 1.
Comment 4 Rafael Chaves CLA 2003-10-28 09:44:26 EST
What do you get if you execute:

c:\winnt\system32\javaw -version

Comment 5 Hong Deng CLA 2003-10-28 11:36:32 EST
I tried  c:\winnt\system32\javaw -version
there is no any information displayed after it is done.
Comment 6 Rafael Chaves CLA 2003-10-28 12:05:11 EST
Created attachment 6574 [details]
show version program

Sorry, you are right, javaw does not produce any output to the console. 

The program below will help us to find out what VM version is in
c:\winnt\system32\javaw.exe. I attached the compiled code as well.

To run it:
c:\winnt\system32\javaw.exe ShowVersion version.txt

This will create a small text file in the current directory showing the VM
vendor and version. Please let us know what you found.

Here is the source code if you prefer to compile it yourself.

===========================================================
import java.io.*;

public class ShowVersion {
	public static void main(String[] args) throws IOException {
		PrintWriter out = new PrintWriter(new OutputStreamWriter(new
FileOutputStream(args[0])));
		out.println(System.getProperty("java.vm.vendor"));
		out.println(System.getProperty("java.vm.version"));
		out.close();
	}
}
Comment 7 John Arthorne CLA 2003-10-28 12:44:24 EST
Alternatively, run the following from a command prompt:

c:\winnt\system32\java -version

It's usually true that where javaw.exe exists, java.exe also exists.
Comment 8 Hong Deng CLA 2003-10-28 12:47:04 EST
Compile ShowVersion.java, 
then run 
c:\winnt\system32\javaw.exe ShowVersion version.txt
but, version.txt is not generated.

I use WSAD, run the following code and the result is
Sun Microsystems Inc.
1.4.2_01-b06

import java.io.*;

public class ShowVersion {
	public static void main(String[] args) throws IOException {
		//PrintWriter out = new PrintWriter(new OutputStreamWriter(new
//FileOutputStream(args[0])));
		System.out.println(System.getProperty("java.vm.vendor"));
		System.out.println(System.getProperty("java.vm.version"));
		System.out.close();
	}
}
Comment 9 Hong Deng CLA 2003-10-28 12:52:20 EST
C:\WINNT\system32>java - version
Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
has value '1.3', but '1.2' is required.
C:\WINNT\system32>java 
Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
has value '1.3', but '1.2' is required.
Comment 10 Rafael Chaves CLA 2003-10-28 13:49:21 EST
Ok, you have an older JRE installed (or not properly uninstalled) that is in the
system path. Unless you fix your setup, you will not be able to start Eclipse
without explicitly specifying a VM.

Thanks for helping tracking this down.

Closing.

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