【实战问题】【12】报错org.apache.commons.lang.exception.NestableRuntimeException

前言:

没有用maven的旧项目,找起jar包来真的是痛苦啊。这个报错出现的原因就是jar包的问题

正文:

出现这个问题的原因是jar包不全,需要以下jar包:

commons-beanutils-1.8.3.jar
commons-lang-2.5.jar
ezmorph-1.0.6.jar
json-lib-2.3-jdk15.jar

接着报错java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory,需要以下jar包

commons-logging-1.1.1.jar

接着又报错java.lang.NoClassDefFoundError: Could not initialize class net.sf.json.JSONArray,需要以下jar包

commons-collections 3.2

如果还出现报错java.lang.ClassNotFoundException: org.apache.commons.lang.*。注意jar包的版本,如果用的是lang3和collections4的话,会有此问题。需改为与上面一致的版本号

参考博客:

关于出现 org.apache.commons.lang.exception.NestableRuntimeException的解决方法 - 谷雨的博客 - CSDN博客
https://blog.csdn.net/gu_gu_/article/details/50551775

java.lang.ClassNotFoundException: org.apache.commons.lang.exception.NestableRuntimeException - zb0567的专栏 - CSDN博客
https://blog.csdn.net/zb0567/article/details/7893063

原文地址:https://www.cnblogs.com/huashengweilong/p/11379501.html

时间: 2024-07-29 01:27:44

【实战问题】【12】报错org.apache.commons.lang.exception.NestableRuntimeException的相关文章

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

转载:http://www.tuicool.com/articles/Vvia6f 缺少相应jar包都会有异常,根据异常找jar包导入...... 这里我说下lang包,因为这个包我找了好半天: 我用的是: commons-lang3-3.1.jar  出现异常: java.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntimeException 可以看出是因为缺少jar包,但是很明显我已经导入了,

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

今天弄一个json字符串解析成array数组报错..JSONArray.fromObject(str)..在以前的时候解析成map集合是没问题的.原来是缺一些包. NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntimeException 加了commons-lang-2.3.jar java.lang.NoClassDefFoundError: net/sf/ezmorph/Morpher 加了ezmorph

org.apache.commons.lang.exception.NestableRuntimeException等缺少jar包的解决办法

最近做服务端和客户端之间的访问,出现了 org.apache.commons.lang.exception.NestableRuntimeException等状况.实在令人头大,翻到了一个很好的帖子说明了这个问题. 原文网址如下:http://blog.csdn.net/zb0567/article/details/7893063 为方便更多的人解决这个问题,现将原文贴出 Java.lang.ClassNotFoundException: org.apache.commons.lang.exce

java.lang.ClassNotFoundException: org.apache.commons.lang.exception.NestableRuntimeException

遇到这种问题是因为jar包引入不全,完整的应该包含: commons-beanutils-1.8.3.jar commons-lang-2.5.jar ezmorph-1.0.6.jar json-lib-2.3-jdk15.jar 但是又出现如下问题: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory 导入commons-logging-1.1.1.jar 又出现如下问题: java.lang.NoC

关于出现 org.apache.commons.lang.exception.NestableRuntimeException的解决方法

最近做服务端和客户端之间的访问,出现了 org.apache.commons.lang.exception.NestableRuntimeException等状况.实在令人头大,翻到了一个很好的帖子说明了这个问题. 原文网址如下:http://blog.csdn.net/zb0567/article/details/7893063 为方便更多的人解决这个问题,现将原文贴出 Java.lang.ClassNotFoundException: org.apache.commons.lang.exce

Java_异常_01_org.apache.commons.lang.exception.NestableRuntimeException

异常信息: The type org.apache.commons.lang.exception.NestableRuntimeException cannot be resolved. It is indirectly referenced from required .class files 原因:apache.commons.lang的jar包出现问题.可能是少了jar包,可能是jar包版本冲突. 解决过程:导入commons-lang3-3.6.jar还是出现这个问题,换成commons

The type org.apache.commons.lang.exception.NestableRuntimeException cannot be resolved. 问题解决

The type org.apache.commons.lang.exception.NestableRuntimeException cannot be resolved. It is indire 引入以下jar包问题解决. commons-beanutils-1.7.0.jar commons-lang-2.4.jar 如果没解决,试着引入 ezmorph-1.0.2.jar json-lib-1.1-jdk15.jar

报错 ‘java.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntimeException’

参考 博客 我遇到的也是 在使用 net.sf.json时报了同样的错误,原因如同 这篇博客所说,缺少 依赖的jar包 原文地址:https://www.cnblogs.com/liyanghui/p/10984332.html

【转】用JSON报的一个错误java.lang.ClassNotFoundException: org.apache.commons.lang.exception.NestableRuntimeExcept

来源:http://blog.csdn.net/eilent/article/details/6927700 出现错误的原因是因为jar包导入不全. 今天自己写了一个JSON的例子,可以一调用就出了问题,报下面这个异常: java.lang.ClassNotFoundException: org.apache.commons.lang.exception.NestableRuntimeException 上网上搜了一下才知道原来在使用JSON的使用的时候,不光要导入JSON这个包,同时还要导入另