title: Selenium 2 WebDriver NoClassDefFoundErrorS
body: <p>I'm working with <code>Selenium 2 WebDriver</code> in Eclipse and everything works fine.</p>
  
  <p>But when I want to test my WebDriver Testcases without Eclipse many missing classes occur.</p>
  
  <p>First it startet with :</p>
  
  <pre><code>NoClassDefFoundError com/google/common/collect/Maps
  </code></pre>
  
  <p>so I downloaded the guava.jar and set the classpath to it.</p>
  
  <p>But now the next NoClassDefFoundError occured:</p>
  
  <pre><code>java.lang.NoClassDefFoundError: org/json/JSONException
  </code></pre>
  
  <p>The errors always occur on <code>createDriver();</code></p>
  
  <p>I run the Selenium with JUnit in Java.</p>
  
  <p>"JUnit only"-testcases work fine (set the classpath to junit.jar &amp; selenium-java.jar)</p>
  
  <p>Do you know which jars I have to bind in that eclipse already has bound in as default for the selenium testcases?</p>