Java.lang.noclassdeffounderror How to Solve

Source: Internet
Author: User

There must be exactly the same two classes, that is, the package name, the class name exactly the same two classes, that is, the class that occurs Noclassdeffounderror exception, appears in different places. When the JVM is taken, a different class is taken and a similar forced conversion occurs.

Check your/web-inf/classes, there must be a class inside, you also have in other places. Other places may be other projects, or in a jar package. Check it out, that's what caused the problem.

My example of error is that Tomcat compiles a. class file that is not in the directory, and then I find a copy of the one coming over, resulting in two.

Java.lang.noclassdeffounderror How to Solve

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.