new JSONObject()不执行 不报错 解决方法

原文:http://blog.csdn.net/kamouswjw/article/details/8119872

使用:import net.sf.json.JSONObject;

调用JSONObject x = new JSONObject()或者其它构造函数,不报错直接异常。。catch了也不能打印出来,一般是json缺包。

struts2.1.6 json需要包:

1.commons-beanutils-1.7.0.jar

2.commons-collections-3.2.1.jar

3.commons-lang-2.3.jar

4.commons-logging-1.0.4.jar

5.ezmorph-1.0.3.jar

6.json-lib-2.1.jar


其它版本查下必须包就ok

 

 

你可能感兴趣的:(new JSONObject()不执行 不报错 解决方法)