Java environment variable Configuration

Source: Internet
Author: User

Java environment variable configuration:

Operating system: WIN10;

JDK Version: 1.8

1. Install the JDK and customize the installation directory.

2. Set environment variables. In the system variable, set the Java_home,path,classpath three item.

JAVA_HOME Specifies the installation path for the JDK, which includes folders such as LIB,BIN,JRE (set this variable well, because you need to rely on this variable when running tomcat,eclipse, etc.).

path allows the system to identify Java commands under any path, set to: %java_home%\bin;%java_home%\jre\bin

Classpath is the Java load class or Lib path, set to: .; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar (. = Current path)

%java_home% refers to referring to the previously specified java_home

3. After the configuration is complete win+r, enter CMD to open the DOS black window, enter command "Java-version", "Java", "Javac" three commands to test whether the environment variable is configured successfully.

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.