An error occurs after the software is installed on the server. The Tomcat service cannot be started. The log shows error occurred during initialization of VM Java Lang noclassdeffounderror.
Indicates that the definition of a class cannot be found when the VM initializes the class. Generally, if the service can be started normally, the classpath class path problem occurs. However, if the service is started, an error is reported, and the file is missing.
In foreign languages, this problem is described
Rt. jar file loss, environment variables, and virtual machine Installation Problems
Re-write the Rt. jar file and find that the Service prompt is: window cannot be started, error 0;
In the rollback step, delete the file and the error code 1076 is displayed. The service is abnormal.
ThanksOn my blog (Http://blog.sina.com.cn/s/blog_4c37f6410100qnc8.html). Here, we will describe how to solve the problem:
That is, Tomcat for Windows installation. In the configuration options, in the Java tab of Tomcat configure, the virtual machine path is not jre6, but jdk1.6.
Program Files/Java/JRE/bin/client/JVM. dll
% Java_home %/jdk1.6.0 _ 21/JRE/bin/client/JVM. dllSummary: when the path is correct, most of them are file missing. Because the path is incorrect and the file cannot be found, an error is prompted. after jar is copied, the startup class problem is solved, but the file modification path is still missing. OK