The CATALINA_HOME environment variable is not defined correctly

After changing the computer, the configuration is finished and the Tomcat starts

The CATALINA_ HOME environment variable is not defined correctly

To sum up. In order to avoid making mistakes later

Solutions

1. Determine whether to add Catalina_ Home is an environment variable (you don’t need to add Catalina at all)_ BASE,java_ base,tomcat_ Base these, personally tried, just add Catalina_ HOME)

2.CATALINA_ The home environment must be in the Tomcat installation directory, for example: D:// J2EE/apache-tomcat-8.0.33

It can’t be used; End of bin

3. Finally, it is necessary to add in the path;% CATALINA_ HOME%\lib;% CATALINA_ HOME%\bin

Notice why you add after path

Path enables the system to recognize Java commands in any path, set to% Java_ HOME%\bin;% JAVA_ When setting the path, do not use; The beginning

classpath is the path of the Java class or lib. Only when the class is in the classpath, can the Java command recognize it. Set it to:;% JAVA_ HOME%\lib\dt.jar;% JAVA_ The classpath is set to refer to two jar packages, dt.jar and tools.jar JAVA_ Home% refers to the Java specified above_ Home, quoted with percent sign

Similar Posts: