调试程序JSONObject对象转换时出现:java.lang.ClassNotFoundException:
2018-03-05 20:36
651 查看
调试程序JSONObject对象转换时出现:java.lang.ClassNotFoundException: org.apache.commons.lang.exception.NestableRuntimeException异常,发现缺少jar包。百度到解决方法为添加如下jar包:commons-beanutils-1.7.0.jar
commons-lang-2.1.jar
ezmorph-1.0.2.jar
json-lib-1.1-jdk15.jar
但调试后还是出现上述异常,仔细对比发现工程lib中存在commons-lang3-3.1.jar 和 commons-lang-2.5.jar ,粗心的把lang3的包当作lang包而没有添加commons-lang-2.5.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
以上就是java.lang.ClassNotFoundException: org.apache.commons.lang.exception.NestableRuntimeException解决办法的全文介绍,希望对您学习和使用java程序开发有所帮助. http://www.zhimengzhe.com/bianchengjiaocheng/Javabiancheng/32084.html 原文
commons-lang-2.1.jar
ezmorph-1.0.2.jar
json-lib-1.1-jdk15.jar
但调试后还是出现上述异常,仔细对比发现工程lib中存在commons-lang3-3.1.jar 和 commons-lang-2.5.jar ,粗心的把lang3的包当作lang包而没有添加commons-lang-2.5.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
以上就是java.lang.ClassNotFoundException: org.apache.commons.lang.exception.NestableRuntimeException解决办法的全文介绍,希望对您学习和使用java程序开发有所帮助. http://www.zhimengzhe.com/bianchengjiaocheng/Javabiancheng/32084.html 原文
相关文章推荐
- Android JSON 出现Caused by: java.lang.ClassNotFoundException: net.sf.json.JSONObject;
- JSONObject对象转换时出现:java.lang.ClassNotFoundException:
- idea调试SpringMvc, 出现:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderL
- Caused by: java.lang.ClassNotFoundException: com.alibaba.fastjson.JSONObject
- 使用JSONObject报错:Java.lang.ClassNotFoundException: org.apache.commons.lang.exception.NestableRuntimeEx
- idea调试SpringMvc, 出现:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderL
- 运行mapreduce程序时出现异常java.lang.RuntimeException: java.lang.ClassNotFoundException的原因
- Caused by: java.lang.ClassNotFoundException: net.sf.json.JSONObject
- POI操作excel2007 出现异常 java.lang.ClassNotFoundException: org.apache.xmlbeans.XmlOptions 解决方法
- 使用JSON报的一个错误java.lang.ClassNotFoundException
- 关于升级ADT22后出现java.lang.ClassNotFoundException错误的解决
- 关于升级ADT22后出现java.lang.ClassNotFoundException错误的解决
- 使用JSON报的一个错误java.lang.ClassNotFoundException
- android 升级ADT到22后,出现bug: Could not find class,或者Caused by: java.lang.ClassNotFoundException:异常
- 解决Eclipse中运行WordCount出现 java.lang.ClassNotFoundException: org.apache.hadoop.examples.WordCount$TokenizerMapper问题【转】
- Unable to find parent packages json-default 与java.lang.ClassNotFoundException: net.sf.ezmorph.Morphe
- Spring-Flex与Hibernate 4集成出现错误 ,java.lang.ClassNotFoundException: org.hibernate.collection.Persisten
- Android最新的开发环境运行原来环境开发的程序报java.lang.ClassNotFoundException错误解决
- maven 项目出现 java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- spring3.0.5 和hibernate3.6整合问题之java.lang.ClassNotFoundException: org.objectweb.asm.Type