Windows 10 Java environment variable configuration, java environment variable

Source: Internet
Author: User

Windows 10 Java environment variable configuration, java environment variable

Java environment variable configuration in Win10

First, you should have installed the Java JDK (if not installed JDK, please jump to this URL: http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html)

The author installed jdk-8u91-windows-x64

Next, I will focus on how to configure the Java environment variables so that I forget to make a backup one day later.

(Note: The Java environment variable configuration of win10 is slightly different from that of other windows versions)

Right-click the "properties" option of "this computer" on the desktop

 

Select "Advanced System settings"

 

Click the "environment variable" option below

 

The specific configuration process is as follows:

Click "new" under "system variables ".

 

Fill in "Java_Home" in "variable name"

"Variable value" is the JDK installation path. The author's path is "D: \ Program Files \ Java \ jdk1.8.0 _ 91"

Click "OK"

 

Find "Path" in "system variable"

 

Select "Path" and click "edit ".

 

Select edit text on the right and copy all the quotation marks to "% Java_Home % \ bin; % Java_Home % \ jre \ bin ;", to the beginning of the "variable value" column, "OK"

 

In the "System variables" column, "new", "variable name" is "CLASSPATH", and "variable value" is ".; % Java_Home % \ bin; % Java_Home % \ lib \ dt. jar; % Java_Home % \ lib \ tools. jar "," OK"

 

Click "OK" at the bottom of "environment variables"

 

Return to the desktop, press Win + R, and Enter cmd"

 

Check whether the Java environment is configured successfully.

Enter "java"

 

Enter "javac"

Enter "java-version"

 

If you have seen all the above three images, congratulations! environment variables have been configured!

 

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.