java.lang.NoClassDefFoundError:org/apache/commons/lang/exception/NestableRuntimeException报错的原因

问题排查:

  很显然这是缺少jar包的错误,但是我已经导入了jar(commons-lang3-3.4),把他换成了这个包commons-lang-2.4.jar就好了。

  但是又出现 java.lang.NoClassDefFoundError: net/sf/ezmorph/Morpher   加入ezmorph-1.0.4.jar解决

 

maven 引用地址

  

<dependency>
    <groupId>net.sf.ezmorph</groupId>
    <artifactId>ezmorph</artifactId>
    <version>1.0.4</version>
</dependency>

 

 

 

 

<dependency>
    <groupId>commons-lang</groupId>
    <artifactId>commons-lang</artifactId>
    <version>2.4</version>
</dependency>

 

 

 

 

其他jar缺少报错

  commons-beanutils-1.8.0.jar不加这个包
  java.lang.NoClassDefFoundError: org/apache/commons/beanutils/DynaBean


  commons-collections.jar 不加这个包
  java.lang.NoClassDefFoundError: org/apache/commons/collections/map/ListOrderedMap


  commons-lang-2.4.jar不加这个包
  java.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntimeException


  commons-logging-1.1.1.jar不加这个包
  java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory


  ezmorph-1.0.4.jar不加这个包
  java.lang.NoClassDefFoundError: net/sf/ezmorph/Morpher


  json-lib-2.3-jdk15.jar不加这个包
  java.lang.NoClassDefFoundError: net/sf/json/JSONObject

posted @ 2018-12-19 13:43  曾将  阅读(1127)  评论(0编辑  收藏
//目录 欢迎评论,一起学习,对大家有用请点个赞。