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:
- Sudo starts Tomcat and reports an error. There is no Java environment
- ideaUnable to ping server at localhost:1099
- About javac error bash: Java: command not found solution
- [Solved] JAVA Run Error: Error: Could not find or load main class
- [Solved] NB: JAVA_HOME should point to a JDK not a JRE
- [791] Maven configuration error and the Java_ The solution of home environment variable is not defined correctly
- Linux Install Tomcat Error: service tomcat does not support chkconfig
- SDK manager cannot open the solution (Android)
- Web service, download the file linked with HTTPS, and prompt javax.net.ssl.sslkeyexception: RSA premaster secret error
- Java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment [Solved]