Community
Participate
Working Groups
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
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
Yes, it works to start Eclipse -vm <javaHome>\j2sdk1.4.2\jre\bin\java.exe
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.
What do you get if you execute: c:\winnt\system32\javaw -version
I tried c:\winnt\system32\javaw -version there is no any information displayed after it is done.
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(); } }
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.
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(); } }
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.
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 ***