Windows Java JDK8 Configuration environment variables

Source: Internet
Author: User

JDK the latest version has been out of the jdk8u60, after the download installation is complete, also need to configure environment variables, the following small series to share the next JDK 8.0 environment variable Configuration tutorial, I hope you like.

jdk8.0 environment Variable Configuration tutorial

Right-click computer → properties → advanced system settings → advanced → environment variables

1. System variables → New

Variable name: java_home

Variable Value: (Variable value fill in the installation directory of your JDK, for example, I am C:\Program files\java\jdk1.8.0_60)

2. Locate the Path variable in the system variable and select Edit

Enter%java_home%\bin;%java_home%\jre\bin at the end of the variable value;

(Note that if the original path is not at the end of the variable value , enter it first, and then enter the above code)

3. System variables → New

Variable name: CLASSPATH

Variable value:.%java_home%\lib;%java_home%\lib\tools.jar (Note that there is a point in the front)

4. Verify that the JDK is configured successfully: Run the cmd input java-version (there are spaces between Java and-version) or javac-version

============== Memo ================

Windows Java JDK8 Configuration 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.