User guide

ant
<step>
</step>
The sample prints information to standard output. for example:
===========================================
Welcome to the AWS Java SDK!
===========================================
You have access to 4 Availability Zones.
You have 0 Amazon EC2 instance(s) running.
You have 13 Amazon SimpleDB domain(s) containing a total of 62 items.
You have 23 Amazon S3 bucket(s), containing 44 objects with a total size
of 154767691 bytes.
Building and Running the Samples using the
Eclipse IDE
If you use the AWS Toolkit for Eclipse, you can also start a new project in Eclipse based on the AWS
SDK for Java or add the SDK to an existing Java project.
Note
After installing the AWS Toolkit for Eclipse, we recommend configuring the toolkit with your
security credentials.You can do this anytime by selecting Preferences from the Window menu
in Eclipse, and then selecting the AWS Toolkit section.
To run a sample using the AWS Toolkit for Eclipse
1. Open Eclipse.
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.
Version v1.0.0
68
AWS SDK for Java Developer Guide
Building and Running the Samples using the Eclipse
IDE