The order in which JVM searches for class files:
Use set classpath=xxx under doc,
If the classpath environment variable is not configured, the JVM only looks for the class files to run in the current directory.
If the classpath environment is configured, the JVM will first look for the class file to run in the directory of the classpath environment variable value.
If a semicolon is added at the end of the value, the JVM does not find the class file to be specified in the classpath directory, and will search it once in the current directory.
If there is no semicolon at the end of the value, then the JVM does not find the class file to be specified in the classpath directory and will not be searched in the current directory. Even if there is one in the current directory, it will not run.
Recommendation: When configuring the classpath environment variable, do not add a semicolon at the end of the value. If you need to access the current directory, you can use "." to represent it.
The above method of searching for class files in JVM virtual machines is all the content I share with you. I hope you can give you a reference and I hope you can support Wulin.com more.