Analysis and Solution of errors reported by ECLIPSE startup

Source: Internet
Author: User

Error description

I have been using myeclipse for a long time and have never encountered any startup error. However, the following error is reported when I use Eclipse IDE for Java EE developers:

 

Error Analysis

 

The error message shows that the JVM version 1.4.2 _ 15 does not meet the current eclipse version. So why is this error? The first answer is that the JVM is required for eclipse startup, which is also reasonable, because eclipse is indeed written in Java and must run JVM. Therefore, we need to consider how the JVM is used during the eclipse startup process: Eclipse first executes the-VM parameter; if there is no-VM parameter, find the eclipse \ JRE subdirectory; if not, eclipse looks for the Java Runtime Environment registered in the system.

 

Through this process, we can analyze from the following:

1. We have not configured VM parameters. This is a positive because this operation is not performed after downloading by default.

2. There is no JRE directory in eclipse. It is confirmed that no

3. No JVM environment variables are configured. It is confirmed that there are some environment variables.

 

From the perspective of conflict, eclipse found the 1.4 JVM when looking for environment variables. Possible causes include:

).

2. You may have installed JVM and configured it in path. This feature is similar to 1.

The analysis can only be the second case, because Weblogic and Oracle are not loaded on the machine. We can only guess the directory where the JVM is located, so we did a test:

1. Configure the jdk1.6 directory to the first item in path and start eclipse successfully (this is inevitable ).

2. Moving the jdk1.6 directory to the second location fails to start eclipse. OK, the problem directory must be located in the first directory (the system is % SystemRoot % \ system32 ;).

3rd, the javaw.exe file is found in the operating system C drive win32, and Java/j2re1.4.2 _ 15 is found in the C drive ProgramFiles, which is exactly the same as the error version.

 

Summary:

 

Eclispestarts the javaw.exe file and looks for the sequence described above. In addition, java2.exe calls JRE files.

Start eclipse from the command line

Go to the eclipse installation directory on the command line, as shown in:

 

Run eclipse-VM c: \ jdk6 \ bin \ javaw. Then the startup page appears and starts successfully.

 

JRE directory copy

Copy the JRE directory of JDK 6 to the installation directory of eclipse, and start it.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.