User guide

2. Create a new AWS Java project. In Eclipse, on the File menu, point to New, and then click Project.
The New Project wizard opens.
3. Expand the AWS category, then select AWS Java Project.
4. Click Next. The project settings page is displayed.
5. Enter a name in the Project Name box.The AWS SDK for Java Samples group displays the samples
available in the SDK, as described previously.
6. Select the samples you want to include in your project by selecting each check box.
7. Enter your AWS credentials. If you've already configured the AWS Toolkit for Eclipse with your
credentials, this is automatically filled in.
8. Click Finish.The project is created and added to the Project Explorer.
To run the project
1. Select the sample .java file you want to run. For example, for the Amazon S3 sample, select
S3Sample.java.
2. Select Run from the Run menu.
To add the SDK to an existing project
1. Right-click the project in Project Explorer, point to Build Path, and then click Add Libraries.
2. Select AWS Java SDK, and then click Next and follow the remaining on-screen instructions.
Version v1.0.0
71
AWS SDK for Java Developer Guide
Building and Running the Samples using the Eclipse
IDE