I am having some problems in running the Json-lib, could you please help me?
I have noted that you could use the following command
successfully:
JSONArray json = (JSONArray) XMLSerializer.read(aXMLString);
Then, I am having problems in running this line. I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: nu/xom/Serializer
at jsonclient.JSonTest.init(JSonTest.java:47)
at jsonclient.JSonTest.<init>(JSonTest.java:42)
at jsonclient.Main.main(Main.java:34)
I was in doubt about the lib files (jars) included in the project. I have include the following:
commons-beanutils.jar
commons-beanutils-bean-collections.jar
commons-beanutils-core.jar
commons-lang-2.3.jar
commons-lang-2.3-javadoc.jar
commons-lang-2.3-sources.jar
ezmorph-1.0.2.jar
json-lib-1.1-jdk15.jar
junit.jar
serializer.jar
xalan.jar
xercesImpl.jar
xml-apis.jar
There is some jar file missing? Which jar files have you included in your example?
Thanks in advance!
|