Error occurred during initialization of VM and noclassdeffounderror on Tomcat server

Source: Internet
Author: User

 

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.