"Java Learning" 02.Tomcat configuration

Source: Internet
Author: User

Steps

Description

1, why configure path?

In order to facilitate the invocation of the program, for example, you add a directory path to the system default environment variable path, you can directly in the run to enter the directory of the program name, you can directly run.

2, why Classpath?

Set Classpath=%classpath%;classpath1;classpath2 ... In summary, the purpose of setting up classpath is to tell the Java execution environment where you can find the Java program (. class file) you want to execute. In fact, JDK 5.0 defaults to the current working directory (the. settings above), as well as the JDK's lib directory (this is assumed to be C:\Program files\java\jdk1.5.0_06\lib) in the search for Java programs. So if the Java program is in these two directories, it is not necessary to set the CLASSPATH variable can also be found, in the future if the Java program is not placed in these two directories, you can follow the above settings classpath.

Reference: Https://baike.baidu.com/item/CLASSPATH/5734076?fr=aladdin

"Java Learning" 02.Tomcat 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.