Problem with AWS SDK installation

0

I downloaded the AWS SDK but I can't install it on the Eclipse IDE. Can someone help me and explain it to me in detail?

Dario
질문됨 10달 전232회 조회
2개 답변
1

Hi, the most efficient is probably to watch a video about installing SDK in your Eclipse: https://www.youtube.com/watch?v=vjpnbIxsoZ0

Hope it helps

Didier

profile pictureAWS
전문가
답변함 10달 전
0

Hi,

Are you trying to install the AWS Toolkit for Eclipse? If so, note that is no longer supported by AWS, so I recommend that you take a look at the officially supported AWS Integrated development environments (IDE) Toolkits and Software development kits (SDKs).

profile picture
전문가
답변함 10달 전
  • I tried to insert the aws-java-sdk-1.12.508.jar file in the Build path > configure build path

    then to verify I enter this test code

    import software.amazon.awssdk.regions.Region; import software.amazon.awssdk.services.s3.S3Client; import software.amazon.awssdk.services.s3.model.ListBucketsResponse;

    public class S3Example { public static void main(String[] args) { // Create an instance of the S3 client S3Client s3Client = S3Client.builder() .region(Region.US_EAST_1) // Replace with your preferred AWS Region .build();

         // List S3 buckets
         ListBucketsResponse response = s3Client.listBuckets();
         response.buckets().forEach(bucket -> System.out.println(bucket.name()));
     }
    

    }

    but the response is an error message as if nothing is working

  • Hi,

    Understood, so you want to make use of the AWS SDK in a Java project. What error message do you get? Have you tried managing this dependency (or external library) through Maven or Gradle instead of adding the jar directly in Eclipse? You can find multiple examples on the aws-doc-sdk-examples Github repository, including Maven pom.xml file to manage dependencies.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠