(RPM) The specified JRE installation does not exist does not exist for the specified JRE installation

Source: Internet
Author: User

In the development of the environment as long as the configuration, if there is no accident, the JRE working environment is generally not a problem. The specified JRE installation does not exist the problem is that I was almost a rookie to re-install the system. I hereby bear in mind that ...

When Eclipse launches the project, it pops up a error:the specified JRE installation does not exist stunned .....

Causes: 1, the JDK environment configuration is wrong 2, Tomcat in Eclipse Runtime Environment initial path error

Solution Solutions

1. JDK Environment Configuration error: Reload JDK

1-JDK Download and install

configuration of environment variables for 2-JDK

First, right-click My Computer, select Properties , Advanced, environment variables

(1) Java-home Settings

Java_home points to the installation path of the JDK

Under this path you should be able to find bin,Lib and other directories

If my setting should be Java_home=d:\program files\java\java\jdk1.6.0_26;

Legend: Create a new system variable, click " new ", then write "Java_home" on the variable name , and then write the path that you just installed after the variable value:D:\Program files\java; Finally, you can determine.


(2)PATH setting

PATH is set to point to the bin directory of the JDK

In the bin directory is a variety of compiled execution commands

If my setting should be Path=%java_home%\bin;

Description:%java_home% represents the installation path for java_home

Legend: In“System variables“In the selection"PATH"This line (Pathmeans that the system can be identified under any path.Java command), click Edit. Then in " " "; " symbol, then write jdk Install the path. Click " OK " The configuration is complete. As shown in. note: " ; " separate )


(3)CLASSPATH settings

CLASSPATH Set the path of the class, and most importantly

If my setting should be Classpath=d:\program Files\java\java\jdk1.6.0_26\jre\lib\rt.jar;

Legend: New system variable "Classpath". Just like the top .


Inspection: After the configuration is complete, verify that the installation is successful. Click " start ", " run " , enter "cmd"to enter the command interface. Enter the following to detect:

java// Display the appropriate information is correct

javac// Display the appropriate information is correct

java-version// Output Corresponding version information indicates successful installation


General verification Javac, if the Javac can display the corresponding information on the correct installation


2, Runtime Environment initial path error

1. Click "preferences--> Server--Runtime environments " in the Eclipse toolbar Then click on the Add button on the left , select Apache Tomcat v7.0, then OK.

then click on the "Add" button to select Apache Tomcat v7.

Click " next "to select the Tomcat installation path in the second text box

Click " finish "and then " OK " to the content of the settings involved

This will start without reporting the specified JRE installation does not exist this error


(RPM) The specified JRE installation does not exist does not exist for the specified JRE installation

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.