Build new applications in the cloud - or use interoperable services that run on Microsoft infrastructure to extend and enhance your existing applications. You choose what's right for you.

    Vote for it on EPIC :
Table of Contents

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:

  1. Complete:           SDK Download
  2. 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_1.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

  1. Right click the project name and navigate to Build Path.
  2. Select Configure Build Path...

Adding External Class Folder — Windows Azure SDK for Java

  1. In Java Build Path panel, select button Add External Class Folder...
  2. Browse to plugin directory of Eclipse where Windows Azure SDK for Java was uploaded.
  3. Selected class folder org.soyatec.windows.azure.java_*** and then select OK button

Adding External JARs — Dependencies

  1. In Java Build Path panel, select button Add External JARs...
  2. Browse to plugin directory of Eclipse where Windows Azure SDK for Java was uploaded.
  3. Open class folder org.soyatec.windows.azure.java_***
  4. Open folder lib
  5. Selected all JARs in folder lib and then select OK button

Ready

  1. In Java Build Path panel, notice all the JARs and class paths added and then select OK button
  2. 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.

  1. Right click the project name and navigate to Build Path.
  2. Select Add Libraries...
  3. Select JUnit
  4. Library JUnit now appears in project.

 

Summary

 

In this lab, you have learned how to...

 

 

Good job!! You are done with this Lab.