Lab 0 — Setup Java Project to use Windows Azure SDK
In this lab, you will learn how to prepare a Java Project in Eclipse to use the Windows Azure SDK.
Introduction — Windows Azure SDK JARs
For Eclipse Programmers
The Windows Azure Eclipse plug-in contains all the JARs required to perform Java programming using the Windows Azure SDK.
The tasks in this lab shows how to configure a project with these JARs to create a Windows Azure Java project in Eclipse.
If you plan on using Eclipse, then perform the following if you have not done so already:
- Complete: SDK Download
- If installing on Eclipse without PHP, then do not select those choice during upload of plugin.
For Non-Eclipse Programmers
If you are a programmer who prefers not to use Eclipse, then to perform Java programming using Windows Azure SDK requires this JAR:>
org.soyatec.windows.azure.java_2.0.0.****.jar
And this JAR has dependency with all these JARs:
Task 1 — Configuring Build Path in Eclipse Java Project
Within the Windows Azure SDK plug-in, upon installation it includes all of the aforementioned JARs.
Begin Configuring Build Path
- Right click the project name and navigate to Build Path.
- Select Configure Build Path...
Adding External JAR — Windows Azure SDK for Java
- In Java Build Path panel, select button Add External JARs ...
- Browse to plugin directory of Eclipse where Windows Azure SDK for Java was installed.
- Selected the file org.soyatec.windows.azure.java_*** and then select Open button
Adding External JARs — Dependencies
- Download this zip file, which contains all necessary jars
- Unzip it somewhere.
- In Java Build Path panel, select button Add External JARs...

- Browse to the directory where all dependent jars are stored
- Selected all JARs and then select Open button
Ready
- In Java Build Path panel, notice all the JARs and class paths added and then select OK button
- All the JARs and class paths added now reappear in Referenced Libraries within the Java project.
Task 2 — Configuring JUnit Testing
It is extremely helpful to verify you development using JUnit.
- Make sure Java Development Toolkit is installed in your eclipse, otherwise install it via the main menu Help->Install New Software...
- Right click the project name and navigate to Build Path.
- Select Add Libraries...
- Select JUnit
- Library JUnit now appears in project.
Summary
In this lab, you have learned how to...
- Configure Build Path for creating a Windows Azure Java Project
- Setup Java Project for JUnit testing
Good job!! You are done with this Lab.
© 2009 Soyatec. All rights reserved.