title: How to use xstream fro xml serialization in eclipse
body: <p>I am having some trouble figuring out how to download and use xstream in eclipse.  When I download the binary distribution from the website, I get a zip file.  Where should I extract it, and how do I use it?</p>
  
  <p>Edit:</p>
  
  <p>OK, I have added it to my build path, but now when I try to use XStream to serialize an <code>ArrayList&lt;Earmark&gt;</code> where <code>Earmark</code> is a class that I have defined, I get the following error message:</p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: org/xmlpull/v1/XmlPullParserException
  at com.thoughtworks.xstream.XStream.&lt;init&gt;(XStream.java:334)
  at examples.TestEarmarkExtractor.SerializeEarmarks(TestEarmarkExtractor.java:19)
  at examples.TestEarmarkExtractor.main(TestEarmarkExtractor.java:48)
  Caused by: java.lang.ClassNotFoundException: org.xmlpull.v1.XmlPullParserException
  at java.net.URLClassLoader$1.run(Unknown Source)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  ... 3 more
  </code></pre>
  
  <p>Update: The error is occurring <em>before</em> I try the serialization.  It occurs on the line</p>
  
  <pre><code>XStream xs = new XStream();
  </code></pre>