Configuration of JDK environment variables in Windows environment

Source: Internet
Author: User

First, the Environment preparation

Windows10

jdk-9.0.1

Second, download and install the JDK

Download the JDK installation package to the Java website, address: http://www.oracle.com/technetwork/java/javase/downloads/index.html, choose a JDK version for your download and install it, the specific process is not detailed.

Second, the environment variable configuration

1. Right-click on "My Computer" >> "Properties" on the desktop and tap "Advanced system Settings" on the pop-up page.

  

2. Click the Environment Variables button in the "Advanced" tab of the "System Properties" window that pops up.

  

3, in the "Environment Variables" window, click the "New" button below, in the popup "New system Variable" window, create a new environment variable named "Java_home", the variable value is the JAVA installation path, I: D:\project\tool\Java\jdk_ 9.0.1.

  

4, set the PATH environment variable, the variable already exists, so select path in the list, click the "Edit" button below, add the following information in the popup window:%java_home%\bin;%java_home%\jre\bin, then click "Confirm" button. :

  

5. As with Java_home, create a new environment variable named "Classpath" with the value:%java_home%\lib\dt.jar;%java_home%\lib\tools.jar. :

  

6, after configuring the environment variable, you can enter CMD to check whether Java is installed correctly, check the command is java-version,:

  

If the Java version and JVM version information is correctly printed, the Java installation is correct.

Configuration of JDK environment variables in Windows environment

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.