The difference between environment variables in Java configuration

Source: Internet
Author: User

1, see "Crazy Java Handout" in the third edition of the configuration environment variables, 1.4 and 1.5, only the path is configured, and run successfully;

Question: Do I need to configure path only?

2, Baidu found the following link to explain the above problems: if only in the DOS console to compile execution, configure the PATH environment variable is enough;

Java environment Variables Java_home, CLASSPATH, path settings detailed

3, "Crazy Java Handout" The third edition of 1.5.4 section, if you use more than 1.5 version of the JDK, even if you do not set classpath, you can normally compile the Java program;

After 1.5, it will automatically search for class files under the current path, and automatically load Dt.jar and Tools.jar;

Using the JDK of the previous version of 1.4, you need to add (.) in the CLASSPATH environment variable to make it easier for the JRE to search for Java classes under the current path;

In addition, the Dt.jar and Tools.jar two jar packages in the Lib folder in the JDK are also required to be added to the classpath

4, the role of environmental variables java_home, equivalent to a reference variable, generally set to the JDK installation directory

The difference between environment variables in Java 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.