Sign In/My Account | View Cart  
advertisement

Article:
 Converting Between XML and JSON
Subject: Congratulations! Could you help me with Json-lib?
Date: 2007-05-03 13:34:05
From: CassiuP

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!


Previous Message Previous Message   Next Message Next Message


Titles Only Titles Only Newest First
  • Congratulations! Could you help me with Json-lib?
    2007-06-26 18:13:18 ologist

    you must download "xom1.1.jar" at this site!
    http://www.ibiblio.org/xml/XOM/


    by ologist(www.ologist.co.kr)

    • Thank you for Answer
      2008-03-20 17:35:26 JM-KIM

      Thank you for answer.
      I have same problem.
      but There is xom-1.1.jar file in my library.
      is there no any other solution?


Sponsored By: