Windows under Java environment variable settings

Source: Internet
Author: User

The Java environment variables are now set as follows:

1. Open My Computer –> Properties –> Advanced –> Environment variables

2. New System Variables java_home and CLASSPATH

Variable name:java_home

Variable value:d:\Java\java\jdk1.6.0_45 (Note: Do not add "\" at the end of the physical path)

Variable name:CLASSPATH

Variable value:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar;

3. Select the environment variable named "path" in " system Variables ", double-click the variable, add the absolute path of the bin directory in the JDK installation path to the value of the path variable, and delimit the semicolon with the half-width and the existing path.

Variable name:Path

Variable value:%java_home%\bin;%java_home%\jre\bin;

"One is the" compiler "address, and one is the" virtual machine "Address"

This is the Java environment configuration, the configuration is completed directly after the eclipse, it will automatically complete the configuration of the Java environment

Note: If you are just running a compiled JAVA program, you only need to configure Java_home and Path .

Attached: JDK, JRE, JVM differences

Windows under Java environment variable settings

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.