WINDOWS10 settings for Java environment variables __java

Source: Internet
Author: User

Three environment variables are mainly configured under->WINDOWS10: Classpath,java_home,path, these three environment variables are described below. classpath Environment Variables

CLASSPATH environment variable, the value of the variable should be set to

.; %java_home%\lib;%java_home%\lib\tools.jar

Pay attention to the front ".;" One period, one semicolon. java_home Environment Variables

Java_home environment variable, the value of the variable should be set to the path of the JDK you installed, where you should be able to find bin, Lib and other directories.
If you are using the default installation directory, set the following:

C:\Program files\java\jdk-9

What I have installed here is JDK-9, the specific installation path and version according to your own configuration. PATH environment variable

Path environment variable, variable value especially note that the WINDOWS10 version is somewhat different from the previous version's configuration. The variable value here needs to be set to
The absolute path of the JDK. If the default installation directory is taken, the settings are as follows:

C:\Program Files\java\jdk-9\bin; C:\Program Files\java\jdk-9\jre\bin;

Note the position of the two colon and cannot be lost. Check that the environment variable is configured correctly

The Win+r key opens the run panel, enters CMD, enters Java in the Command window, and indicates a configuration error if the prompt is "not an internal or external command, nor a running program or batch file."
It is best to verify Java,javac and java-version. If the configuration error checks to see if your environment variable is configured correctly, especially if path is configured as the absolute path to the JDK. Specific Operations

about how to add environment variables in the computer, do not repeat here, the specific reference to Baidu experience
Note: Variable values refer to the introduction of this 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.