Java environment Variables in some of the small knowledge, a previous only know how to match, do not know the meaning of

Source: Internet
Author: User

Each environment variable that you want to set in Java represents the following meanings:
1, specify the JAVA installation directory, in order to use%java_home% later, so as to avoid writing a long string of paths each time: java_home----C:\Program files\sun\java\jdk1.6.0_02
2. Specify the path to the class after loading the Java program to load it in: Classpath----.; %java_home%\lib\tools.jar;%java_home%\lib\dt.jar
Path, this is going to add----to the front of the%java_home%\bin.
3, Tomcat inside the classpath is the same, specify when there is client access, from the server where to load the class into the program.

Java_home: Filled in is the location of the JDK file, path: In the location of the JDK execution, that is, the JDK Bin directory, set up this path, CMD run program can directly to its bin directory to perform operations, classpath: PATH, is to load the Java program to go where the path of the class where to load, representing the path of the Tools.jar and Dt.jar files in the Lib directory, the previous application of java_home to omit to fill those detailed paths

Java environment Variables in some of the small knowledge, a previous only know how to match, do not know the meaning of

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.