Eclipse foundation - Eclipse startup process http:writeblog.9cbs.netEditgalleries.aspx

xiaoxiao2021-03-06  76

Current configuration: Windows XP SP1, JDK1.4.2_04, Eclipse3.0.1

When you install JDK, you will also install a JRE environment in the system directory. I started to uninstall the JRE environment installed in the system directory, add a variable java_home in the environment variable, and set the value of "f: / j2sdk" (JDK installation directory), add "% java_home% in the PATH variable" / bin; ".

Start Eclipse, you can find everything, click on the menu "window" -> Preferences -> java-> installed JRE, you can find a JRE with a name "J2SDK".

First, change the JDK installation directory name "F: / J2SDK" to "f: / no2sdk" (casually, or remove "% java_home% / bin;") in the PATH variable, start Eclipse, It is found that Eclipse cannot start and appears as follows:

It is mainly to find a Java runtime environment (JRE).

Due to the jRE directory in the Eclipse directory, the correct JavaW execution path is not found in the PATH variable. So Eclipse cannot start.

3 ways to solve the problem:

1. In the MS-DOS window, switch to the Eclipse directory, execute Eclipse -VM f: / noj2sdk / bin / javaw, you can start Eclipse (Eclipse -VM Dir-Location parameter can be used to specify other JREs.).

2. Copy the JRE directory in the F: / noj2sdk directory to the Eclipse directory, you can start Eclipse.

3. Re-change the "F: / NOJ2SDK" directory name to "F: / J2SDK", you can start Eclipse.

The above three methods can be performed separately, if executed, if the Eclipse is executed by default, Eclipse first executes the -VM parameter; if there is no -VM parameter, look for the Eclipse / JRE subdirectory; if not found, Eclipse will find Java registered in the system. Operational environment.

转载请注明原文地址:https://www.9cbs.com/read-108071.html

New Post(0)