• 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

  • 相关阅读:
    hdu1042-N!-(java大数)
    拓扑排序-有向无环图(DAG, Directed Acyclic Graph)
    deleted
    deleted
    deleted
    deleted
    deleted
    deleted
    deleted
    deleted
  • 原文地址:https://www.cnblogs.com/GH0522/p/10142736.html
Copyright © 2020-2023  润新知