使用JSON需要导入的包,及其异常

需要导入的jar包

commons-beanutils.jar

commons-collections-3.1.jar

commons-lang.jar

commons-logging

ezmorph-1.0.6.jar

json-lib-2.2.2-jdk15.jar

如果不导入上面的jar包,会导致下列异常错误

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

你可能感兴趣的:(JavaEE开发)