title: No class def found java
body: <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/http/protocol/HttpContext
   at com.amazonaws.AmazonWebServiceClient.&lt;init&gt;(AmazonWebServiceClient.java:119)
   at com.amazonaws.AmazonWebServiceClient.&lt;init&gt;(AmazonWebServiceClient.java:103)
   at com.amazonaws.services.s3.AmazonS3Client.&lt;init&gt;(AmazonS3Client.java:362)
   at com.amazonaws.services.s3.AmazonS3Client.&lt;init&gt;(AmazonS3Client.java:344)
   at Gethtml_fromS3.main(Gethtml_fromS3.java:16)
  Caused by: java.lang.ClassNotFoundException: org.apache.http.protocol.HttpContext
   at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
   ... 5 more
  </code></pre>
  
  <p>Can any one give me a solution for the above error?</p>