Using the AWS SDK for Java in Eclipse
By: Emiley J Printer Friendly Format
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.
Install the AWS Toolkit for Eclipse
See http://aws.amazon.com/eclipse for information about downloading and installing the AWS Toolkit for Eclipse.
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 start a New Project
- Open Eclipse.
- Create a new AWS Java project by pointing to File -> New -> Project. The New Project wizard opens.
- Expand the AWS category, then select AWS
Java Project.
- Click Next.
The project settings page is displayed.
- Enter a name in the Project Name box. The AWS SDK for Java Samples group displays the samples available in the SDK, as described above.
- Select the samples you want to include in your project by selecting each check box.
- Enter your AWS credentials. If you’ve already configured the AWS Toolkit for Eclipse with your credentials, this is automatically filled in.
- Click Finish. The project is created and added to the Project explorer.
To run the Project
- Select the sample .java file you want to run. For example, for the Amazon
S3 sample, select
S3Sample.java
. - Select Run from the Run menu.
To add the SDK to an existing project
- Right-click the project in the Project Explorer, then select Build Path -> Add Libraries….
- Select AWS Java SDK, then click Next and follow the remaining on-screen instructions.
Comment on this tutorial
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Subscribe to Tutorials
Related Tutorials
Program using concept of byte long short and int in java
Update contents of a file within a jar file
Tomcat and httpd configured in port 8080 and 80
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program in Java
Calculate gross salary in Java
Calculate average sale of the week in Java
Vector in Java - Sample Program
MultiLevel Inheritance sample in Java
Archived Comments
1. What is AWS?
View Tutorial By: Toja at 2013-01-22 10:36:45
2. Ask to google.
View Tutorial By: John at 2013-05-03 22:57:37
3. Ask to google.
View Tutorial By: John at 2013-05-03 22:58:23