java.lang.NoClassDefFoundError: net/sf/ezmorph/Morpher异常解决方法
最近在做web项目时用到JSONObject,Eclipse编译未报错,但执行JSONObject jsonObject = new JSONObject()时却报java.lang.NoClassDefFoundError: net/sf/ezmorph/Morpher异常。
很明显是没有找到相应的class,原来是除了要导入json-lib-2.1-jdk15.jar包外,还要导入其它几个依赖包:commons-beanutils.jar,commons-httpclient.jar,commons-lang.jar,ezmorph.jar,morph-1.0.1.jar。
导入这几个依赖包之后就OK了!
相关推荐
WebVincent 2020-07-21
fengchao000 2020-07-04
baijinswpu 2020-06-28
88483063 2020-06-28
fengchao000 2020-06-16
somebodyoneday 2020-06-15
wujiajax 2020-06-14
somebodyoneday 2020-05-16
xx0cw 2020-05-16
newthon 2020-05-14
sailxu00 2020-04-27
fengchao000 2020-04-20
88483063 2020-01-29
83163452 2020-01-28
baijinswpu 2020-01-25
baijinswpu 2020-01-18