title: java.lang.NoClassDefFoundError using Joda Time in Eclipse
body: <p>I have a project created in Eclipse and I installed joda-time-2.3 in Eclipse, following these steps:</p>
  
  <ol>
  <li>Download Joda Time</li>
  <li>In Eclipse look for your project at package explorer and right click on it then call it New -> Folder -> libs.</li>
  <li>Copy (or) drag &amp; drop the joda-time-2.3.jar into the newly created libs folder.</li>
  <li>Right click on your project again (in package explorer) then Properties -> Java Build Path -> Libraries -> Add Jars -> joda-time-2.3.jar.</li>
  </ol>
  
  <p>After trying to run the code </p>
  
  <pre><code>67. ResultSet rs1 = dbm.ExecuteResultSet("SELECT * FROM Persons");
  68.     while (rs1.next()){
          ...
  77.    DateTime birth = new DateTime(rs1.getTimestamp("birth_date"));
  78.    sb.append(date_format.format(birth));}
  </code></pre>
  
  <p>I get the error <br>
  "java.lang.NoClassDefFoundError: org/joda/time/DateTime
      com.customerrelationshipmanager.servlets.test.doGet(test.java:77)"</p>
  
  <p>I have imported "org.joda.time.DateTime". <br>
  I noticed that the source for the jar was not defined, so I manually linked the source, although I understood that it shouldn't be necessary. <br>
  I did this: "Properties -> Java Build Path -> Order &amp; Export"<br>
  I have cleaned the project and rebuilt.<br>
  I tried to replce the code with:<br>
  <code>DateTime birth = new DateTime(rs1.getTimestamp("birth_date").getTime());</code></p>
  
  <p>None of these worked. Please let me know if you have any other ideas.</p>
  
  <p>Thanks,
  Lau</p>