From the course: AWS for Developers: S3

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Java: Basic setup

Java: Basic setup - Amazon Web Services (AWS) Tutorial

From the course: AWS for Developers: S3

Start my 1-month free trial

Java: Basic setup

- For a Java example, we will operate much like we did with the Python example. A series of functions to show off parts of the STK. We will do so using a simple Java script. This is by no means how a Java program is usually written or structured, but for this example it will serve its purpose. So I'm going to create a new project and I'm going to use Maven, that way it will handle my dependencies. And I'm going to name my project "javas3" and I'm going to store it where I put all of my code. Now I'm going to open up my Artifact Coordinates and I'm going to put in some values here that make sense for me, so com.frankmoley.lil.s3. Leave the artifact name the way it is. And hit "Finish." So our pom file's opened up. And we're going to add a dependency section. We'll add our first dependency, and that dependency is going to be s3 and s3 comes from software.amazon.awssdk. And the version that we're going to use is the…

Contents