java.lang.NoClassDefFoundError:org/apache/commons/lang/exception/NestableRuntimeException 异常的处理

在做eclipse插件开发的时候,有需要使用到json的处理。然后把以前web开发中用到的json包拿过来使用,发现在web开发时候没问题的代码,在eclipse插件开发时不能用了。、

出现以下的异常:

java.lang.NoClassDefFoundError:org/apache/commons/lang/exception/NestableRuntimeException

经度娘后,发现是commons lang包出的问题。我使用的是3.3版本的。更换回2.6版本的lang包。问题得到解决。

commons-lang-2.6.jar下载 

时间: 2024-08-02 16:00:42

java.lang.NoClassDefFoundError:org/apache/commons/lang/exception/NestableRuntimeException 异常的处理的相关文章

DRP问题集结(一)-Tomcat无法启动,报错java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory

             问题一:  Tomcat无法启动,报错java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory           问题二:[Error]JavaWeb: 严重: Failed to initialize end point associated with ProtocolHandler ["http-bio-8080"]           问题三:The APR based Apa

Tomcat不能启动的问题 java.lang.NoClassDefFoundError: org/apache/juli/loggi ng/LogFactory

问题描述 错误提示:Exceptioninthread"main"java.lang.NoClassDefFoundError:org/apache/juli/logging/LogFactoryatorg.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:54)这是怎么回事?谢谢各位!! 解决方案 解决方案二:在你eclipse里设置的存放class文件的路径指定得不对吧!解决方案三:把Bulidpath的

java.lang.NoClassDefFoundError: org/apache/struts2/util/ObjectFactoryDestroyable

问题描述 初次使用struts2,遇到了一个很奇怪的异常.我只是运用struts2做了一个简单的登录界面,可以按照预想的结果正常运行,没有任何错误,但是,将项目remove出Tomcat时,居然报异常,java.lang.NoClassDefFoundError:org/apache/struts2/util/ObjectFactoryDestroyableatorg.apache.struts2.dispatcher.Dispatcher.cleanup(Dispatcher.java:254

mybatis与struts1 [java.lang.NoClassDefFoundError:org/apache/ibatis/io/Resources]

问题描述 在Action中,当我要向数据库中插入一条记录时,报了下面的错误:javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/apache/ibatis/io/Resourcesorg.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:294)org.apache.struts.actions.DispatchActi

无法装入 servlet:java.lang.NoClassDefFoundError: org/apache/xmlbeans/XmlException

问题描述 这些是需要导入的包,我全部都导入了,<classpathentrykind="lib"path="/xmlbeans/resolver.jar"/><classpathentrykind="lib"path="/xmlbeans/saxon9.jar"/><classpathentrykind="lib"path="/xmlbeans/saxon9-ant.

【JUnit 报错】java.lang.NoClassDefFoundError: org/apache/logging/log4j/message/Message

  使用JUnit的时候,报错:java.lang.NoClassDefFoundError: org/apache/logging/log4j/message/Message 原因是因为项目中导入的架包有冲突: 只留下中间的log4j-1.2.17.jar,上下的两个都不要了. 然后 好了  

让时间处理简单化 【第三方扩展类库org.apache.commons.lang.time】

阅读目录 1. DateFormatUtils 和 FastDateFormat  2. DateUtils 3. DurationFormatUtils 和 StopWatch      JAVA的时间日期处理一直是一个比较复杂的问题,大多数程序员都不能很轻松的来处理这些问题.首先Java中关于时间的类,从 JDK 1.1 开始,Date的作用很有限,相应的功能已由Calendar与DateFormat代替.使用Calendar类实现日期和时间字段之间转换,使用 DateFormat 类来格式

apache.commons.lang.StringUtils 字符串Utils

封装了常用的字符串操作. 1.依赖 </dependency> <span style="white-space:pre"> </span><dependency> <groupId>commons-lang</groupId> <artifactId>commons-lang</artifactId> <version>2.5</version> </depe

unittest-Unittest时报了java.lang.NoClassDefFoundError:

问题描述 Unittest时报了java.lang.NoClassDefFoundError: Unittest时报了java.lang.NoClassDefFoundError: oracle/as/config/persistence/PersistenceManager这个错,是什么原因 解决方案 java.lang.NoClassDefFoundErrorjava中,进行Json转换时出错:java.lang.NoClassDefFoundError: org/apache/common