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