I'm trying to send AWSCredentials mail but get an exception
java.lang.NoClassDefFoundError: org / apache / http / conn / scheme / SchemeSocketFactory
I added this jar:
- AWS-Java-SDK-1.3.11.jar
- AWS-Java-SDK-1.3.11-javadoc.jar
- AWS-Java-SDK-1.3.11-sources.jar
- AWS-Java-KFK-flow-assembly-tools-1.3.11.jar
- Common-logging.jar
- HttpClient-4.0-alpha4.jar
- httpcore-4,0-alpha6.jar
- log4j-1.2.13.jar
- mail.jar
My java code is
import com.amazonaws.auth.AWSCredentials; import com.amazonaws.auth.BasicAWSCredentials; import com.amazonaws.services.simpleemail.AmazonSimpleEmailServiceClient; import com.amazonaws.services.simpleemail.model.*; import java.util.LinkedList; public class SESExample { public static final String ACCESS_KEY = "My Access"; public static final String SECRET_KEY = "My Secret"; public static void main(String args[]) { String sender = " support@brandzter.com ";
}
I am also trying to look for this jar, but not getting it. I am using the wrong jar not sure. can anyone tell me what the problem is?
I
source share