title: NoClassDefFoundError using Eclipse/Android
body: <p>I've been trying to use Thrift in my android app to handle RPC's with a server. I add the thrift .jar file to my class path (Properties > Java Build Path > Libraries). I get no problems during compilation but during runtime I get a NoClassDefFoundError when using anything from the jar.</p>
  
  <p>Do I have to do anything else to tell eclipse/android where libraries are located? </p>
  
  <p>Cheers!</p>
  
  <pre><code> TSocket transport = null;
  try {
      transport = new org.apache.thrift.transport.TSocket(sock);  &lt;--- OFFENDING CODE
  } catch (TTransportException e1) {e1.printStackTrace(); }
  </code></pre>