Configuration of the Java environment variable under the WIN10 operating system

Source: Internet
Author: User

One: Download and install the JDK first

(Official Download URL: http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html)

Second: Configure the environment variables and Class,path values

  Find Right-click Properties to enter the page:

  

  

  Click on "Advanced system Settings" to enter the page:

  

  Click on "Environment variables", such as:

  

  Click New, and then, as shown, set a variable name and variable value named "Java_home". (The value of the variable is where you install the JDK yourself, mine is: D\SOFTWAREINSTALLATION\JAVA\JDK)

  

Then click OK, and then find the name of the environment variable named path in the system variable name, as input:

C:\Program\Data\Oracle\Java\javapath; C:;%java_home%\bin;%java_home%jre\bin;\

  

Then click "OK", then create a new CLASSPATH environment variable and enter the following values:

.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar (preceded by a number and semicolon, followed by a semicolon)    Finally, click on the confirmation in the window and then exit (to click on Confirm, then exit, otherwise the settings will be wasted)at this point, the Java environment variable is configured. Test it: Open the DOS console, type "Javac" if the following Chinese style appears, the environment variable configuration is successful.       

  

Configuration of the Java environment variable under the WIN10 operating system

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.