Java environment variable Configuration

Source: Internet
Author: User

I also configured a lot of Java environment variables, each configuration to go online now. Now do a tidy up, so you can directly open their own blog to see the configuration method.

1: Install JDK (Baidu search JDK)

2:

Then find the corresponding system JDK download installation; Suppose the road is C:\Program Files\java

3:

To configure environment variables:

For Java program Development, the main use of the JDK's two commands: Javac.exe, Java.exe. Path: C:\Program files\java\jdk1.8.0_131\bin. However, because these commands are not part of the Windows own commands, you need to configure the path to use them.  

Click Computer-Properties-Advanced system settings, click Environment Variables. Click New under the System Variables column to create a new system environment variable.

(1) New variable name "Java_home", Variable Value "C:\Java\jdk1.8.0_05" (that is, the JDK installation path)
(2) Edit, variable name "Path", at the end of the value of the original variable, add ";%java_home%\bin;%java_home%\jre\bin"
(3) New variable name "CLASSPATH", Variable Value ".; %java_home%\lib;%java_home%\lib\dt.jar;%java_home%\lib\tools.jar "

(currently do not know the role of the third configuration, after the understanding Plus)

4: Verify that the environment configuration is true:

Enter the java,javac,java-version command separately in the console. Look at the output to know if it is configured correctly.

Java environment variable Configuration

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.