【转】用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这个包,同时还要导入另外三个包

总之,共需要下面的 jars,json-lib方可使用:
commons-beanutils-1.7.0.jar 
commons-lang-2.1.jar 
ezmorph-1.0.2.jar 
json-lib-1.1-jdk15.jar

posted @ 2015-10-30 12:49  joey_happy  阅读(191)  评论(0编辑  收藏  举报