Java environment variable settings for Eclipse

Source: Internet
Author: User

1. Right-click on the "My Computer" icon and select "Properties"-"advanced"-"environment variables" in the pop-up menu.

2. Create a new system variable in the "System variables" option of the "Environment variable" (Modify the variable if it already has one):
Java_home, the value is: C:\Program files\java\jdk1.7.0 (fill in your JDK path).

The same method builds a system variable (modifies the variable if it already has one):
CLASSPATH, the value is:;%java_home%\lib\dt.jar;%java_home%\lib\tools.jar;

3, find the variable "PATH" in the system variable, double-click Open, add the following code to the end of the variable value: ";%java_home%\bin;%java_home%\jre\bin;" (Note the first ";" Not less)

When the configuration is complete, start Eclipse, which automatically completes the configuration of the Java environment.
Small bet
The three variables mentioned above have been created here, so the editing interface appears.

The following test is configured successfully, run the cmd command, enter the "java" Command in the dialog box that appears, and if the following results appear, the configuration succeeds:

Detailed new steps can also be referenced: here to write the link content

Java environment variable settings for Eclipse

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.