Windows Ten Java environment variable configuration

Source: Internet
Author: User

WIN10 the Java environment variable configuration

First, you should already have Java's JDK installed (if you don't have a JDK installed, skip to this URL: http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html)

The author installs the jdk-8u91-windows-x64

Next the main talk about how to configure the environment variables of Java, but also for the next day I forgot to make a backup

(Note: Win10 's Java environment variable configuration is slightly different from other versions of Windows)

Right-click on the "Properties" option of "this PC" on the computer desktop

Select the Advanced system Settings option

Click on the "Environment variables" option below

The next step is the specific configuration process:

Click the "new" option under "System Variables"

Fill in "Java_home" at "Variable name"

"Variable Value" is the JDK installation path, the author's path is "D:\Program files\java\jdk1.8.0_91"

Click the "OK" option

Find "Path" in "System variables"

Select "Path" to click "Edit" option

Select Edit text on the right, copy all of the quotes inside "%java_home%\bin;%java_home%\jre\bin;", to the front of the "Variable Value" column, "OK"

In the "System Variables" column, "new", "Variable name" is "CLASSPATH", "Variable Value" is ".; %java_home%\bin;%java_home%\lib\dt.jar;%java_home%\lib\tools.jar "," OK "

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

Go back to your desktop, press the shortcut key "Win+r", enter "cmd"

Check if the Java environment is configured successfully

Enter "Java"

Enter "Javac"

Enter "Java-version"

If the above three pictures are seen, congratulations, the environment variable configuration is OK!

Windows Ten 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.