"Exception Handling" Java.lang.NoClassDefFoundError

Source: Internet
Author: User

Exception in thread "main" java.lang.noclassdeffounderror:org/apache/commons/lang/exception/ Nestableruntimeexception

Use environment: Project relay JSON, reported this exception.

Look at the JSON needs of the jar package, are imported.

Looked for the following reason, found commons-collections-3. X.jar and Commons-lang3-3. X.jar the problem of conflict.

Use the Commons-lang 2.X to do it.

(: http://www.cr173.com/soft/64964.html)

Add the package that JSON needs to use:Json-lib-2.2.3-jdk15.jar
Commons-beanutils-1.7.0.jar
Commons-httpclient-3.1.jar
Commons-lang-2.3.jar
Commons-logging-1.1.1.jar
Commons-collections-3.2.1.jar
Ezmorph-1.0.3.jar the exception that will occur if not:Java.lang.noclassdeffounderror:net/sf/ezmorph/morpher
Java.lang.noclassdeffounderror:org/apache/commons/collections/map/listorderedmap
Java.lang.noclassdeffounderror:org/apache/commons/beanutils/dynabean
Java.lang.noclassdeffounderror:org/apache/commons/codec/decoderexception
Java.lang.noclassdeffounderror:org/apache/commons/lang/exception/nestableruntimeexception
Java.lang.noclassdeffounderror:org/apache/commons/logging/logfactory

"Exception Handling" Java.lang.NoClassDefFoundError

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.