今天开始用JSON
但是发现只下载了json-lib的jar还不行,在eclipse中运行时会出现如下问题:
java.lang.NoClassDefFoundError:..................
原因是JSON-LIB还需要其他的依赖,依赖库如下:
EZMorph
http://ezmorph.sourceforge.net
Commons Collections
http://jakarta.apache.org/commons/collections/
Commons Lang
http://jakarta.apache.org/commons/lang/
Commons BeanUtils
http://commons.apache.org/beanutils/
The Logging Component
http://commons.apache.org/logging/
下载后导入即可运行正确
但是发现只下载了json-lib的jar还不行,在eclipse中运行时会出现如下问题:
java.lang.NoClassDefFoundError:..................
原因是JSON-LIB还需要其他的依赖,依赖库如下:
EZMorph
http://ezmorph.sourceforge.net
Commons Collections
http://jakarta.apache.org/commons/collections/
Commons Lang
http://jakarta.apache.org/commons/lang/
Commons BeanUtils
http://commons.apache.org/beanutils/
The Logging Component
http://commons.apache.org/logging/
下载后导入即可运行正确