I'm using AWS sdk for downloading an object from S3.when i run the program,i keep getting Class not found errors:
java.lang.ClassNotFoundException: org.apache.http.Consts java.lang.ClassNotFoundException: org.apache.hhtp.params.BasicHttpParams java.lang.ClassNotFoundException:org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager 我已经在我的应用程序中包含 aws-java-sdk 1.3.26 jar 文件和 httpcore 4.1 和 httpclient 4.2.1 jar 仍然出现错误。我在我的程序中编写了以下代码以从 amazon s3 下载文件:
AWSCredentials myCredentials = new BasicAWSCredentials(
credentials);
AmazonS3Client s3Client = new AmazonS3Client(myCredentials);
S3Object object = s3Client.getObject(bucket, key);
InputStream is=object.getObjectContent()
无法解决错误。请帮忙