title: NoClassDefFoundError for Jar library
body: <p>I am using Sesame to access a sample RDF repository, </p>
  
  <pre><code>String sesameServer = "http://asimov.ludat.lth.se/openrdf-sesame/";
  String repositoryID = "KnowRob";
  // Cannot create HTTPRepository
  Repository myRepository = new HTTPRepository(sesameServer,repositoryID);
  myRepository.initialize();
  RepositoryConnection con = myRepository.getConnection();
  </code></pre>
  
  <p>however, I get a NoClassDefFoundError while trying to run the code above. </p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/httpclient/Credentials
      at org.openrdf.repository.http.HTTPRepository.&lt;init&gt;(HTTPRepository.java:54)
      at org.openrdf.repository.http.HTTPRepository.&lt;init&gt;(HTTPRepository.java:59)
      at RDF.Start.main(Start.java:30)
  Caused by: java.lang.ClassNotFoundException: org.apache.commons.httpclient.Credentials
      at java.net.URLClassLoader$1.run(Unknown Source)
      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>