title: How to include external library to jetty (start jetty by using start.jar)
body: <p>I am trying to use jetty-nosql-memcached as jetty session backend. </p>
  
  <p>jetty-nosql-memcached: <a href="https://github.com/yyuu/jetty-nosql-memcached" rel="nofollow">https://github.com/yyuu/jetty-nosql-memcached</a> </p>
  
  <p>After I compiled the jar and put the file "jetty-nosql-memcached-0.4.1-SNAPSHOT-jar-with-dependencies.jar" into the following folder,</p>
  
  <ol>
  <li>$JETTY_HOME/lib or </li>
  <li>$JETTY_HOME/lib/ext or </li>
  <li>$JETTY_BASE/lib or</li>
  <li>$JETTY_BASE/lib/ext</li>
  </ol>
  
  <p>Then I try to start up jetty, all the above setup throws the following exception: </p>
  
  <p>ClassNotFoundException: org.eclipse.jetty.nosql.memcached.MemcachedSessionIdManager</p>
  
  <p>I tried with an param after starts.jar </p>
  
  <p>e.g. java -jar start.jar jetty.home=$JETTY_HOME</p>
  
  <p>it successfully loads the class, however, it does not read the $JETTY_BASE war file anymore.  ($JETTY_HOME and $JETTY_BASE rested in different directories)</p>
  
  <p>May I know what is the correct why to include an external library for Jetty?</p>
  
  <p>Many thanks!</p>
  
  <p>Add More information</p>
  
  <h1>Jetty version</h1>
  
  <p>9.1.0.v20131115</p>