Java Environment variables

Source: Internet
Author: User

1. Go to the "Properties" option of "Computer" and select "Advanced system Settings" as shown in:

2. When you click on "Advanced system Settings", you will see the dialog box as shown, select "Environment variables":

3. After clicking on "Environment variable", you will see the dialog box as shown:

4, the next step is the specific configuration process:

①, select "New" as shown,

"Variable name": Java_home

"Variable value": C:\Program files\java\jdk1.8.0_60

Note: the "Variable Value" column mainly fills in the path where you install Java, which may vary depending on the individual situation

②, after the previous step, select "Path" in the environment variable, as shown in:

Edit after Selection:

At the top of the "Variable Value" column, add the following code:

%java_home%\bin;%java_home%\jre\bin;

Note: The above code is best for one character, because Java_home has limited the path to your JDK, and each version of Java JDK should be made up of these things.

③, after the previous step is determined, then "new":

"Variable name": ClassPath

"Variable value":.; %java_home%\bin;%java_home%\lib\dt.jar;%java_home%\lib\tools.jar

Note: The above code is best also a character unchanged paste up, "variable value" the most front.; Don't miss out.

After completing the three steps above, the configuration of the environment variable has been completed.

5, check the environment variables set up: Call "cmd" check

1. Input: "Java", you should see the following things:

2, enter "Javac", you should see the following things:

3, enter "Java-version", you should see the following things:

If the above three pictures are seen, congratulations, the environment variable configuration is OK!

Original stickers: 48471167

Java Environment variables

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.