0

It shows error:

java.lang.NoClassDefFoundError: Could not initialize class com.amazonaws.http.conn.ssl.SdkTLSSocketFactory] with root cause. java.lang.NoClassDefFoundError: Could not initialize class com.amazonaws.http.conn.ssl.SdkTLSSocketFactory

am using code:

AmazonS3 s3Client = AmazonS3ClientBuilder
    .standard()
    .withRegion(clientRegion)
    .withCredentials(new AWSStaticCredentialsProvider(awsCreds))
    .build();
Peyman Mohamadpour
  • 17,954
  • 24
  • 89
  • 100
  • This generally indicates that the class definition was not found in CLASSPATH or was not defined in manifest file's ClassPath attribute. – Sanket Tarun Shah May 01 '20 at 15:32
  • Does this answer your question? [How to solve java.lang.NoClassDefFoundError?](https://stackoverflow.com/questions/17973970/how-to-solve-java-lang-noclassdeffounderror) – Sanket Tarun Shah May 01 '20 at 15:32

0 Answers0