Windows Java environment variable configuration

Source: Internet
Author: User

The first step

Locate the location of the system settings environment variable (Windows 10): Control Panel \ System and Security \ System Click on ' Advanced system settings ' to see "Environment variables"

Step Two

Set 3 paths

1, path (the location of the configuration JDK command file) paths "path" variable is the same case, if there is no path this is to create a new one, some words directly in the back add a path,

C:\Program files\java\jdk1.8.0_131\bin Java jdk Bin file folder path, look at their path is what copy add in on the line, I write my own J file path, do not use

2, Java_home (JDK installation path) path "java_home" variable and path-like nature

C:\Program files\java\jdk1.8.0_131 Java's path to the JDK package

3. CLASSPATH (Location of the Configuration class library file) same as the path

.; C:\Program Files\java\jdk1.8.0_131\lib Remember that there is a point in the front, here is actually written two paths the first point of the table label relative path, plus a semicolon separated path (because of two paths)

The second path is the Lib path to Java.

When the configuration is complete, click OK.

Verify: Ctrl + R input cmd Open command line Input Java if the carriage return appears a lot of operation usage description path, java_home configuration is right; Re-enter Javac if the carriage return also appears a lot of operation usage instructions CLASSPATH configuration is right,

Then the Java environment is built.

Windows Java environment variable configuration

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.