Please follow the following steps for setting up Java development environment for developing Windows Azure applications. This also applies if you plan to develop applications that interact with Windows Azure Active Directory.
Download the latest version of Java Development Kit (JDK) 7 from the following link: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html. Once downloaded, install this in your development environment.
Download the latest version of Java EE 7 Software Development Kit (SDK) from the following link: http://www.oracle.com/technetwork/java/javaee/downloads/index.html. The installer will be downloaded as a Zip file. Unzip it into the required directory. I choose to unzip it in "C:\Program Files\Java\Java EE".
Download JBoss Application Server (AS) 7.1.1 Final (or later) from the following link: https://www.jboss.org/jbossas/downloads.html. Once downloaded, unzip all the files at a particular location. For the sake of this document, let’s assume we’ve unzipped them into “C:\JBoss Application Server 7.1”.
Download JBoss Developer Studio from the following link: https://devstudio.jboss.com/earlyaccess/builds/stable/6.0.0.GA/jbdevstudio-product-universal-6.0.0.GA-v20121206-1855-B186.jar. Once downloaded, install this in your development environment. When prompted to scan for servers, make sure you include the location for your JBoss Application Server (as per our previous assumption, installed in “C:\JBoss Application Server 7.1”.
Once JBoss Developer Studio is installed, go to Help > Check for Updates. The Developer Studio will now update itself. This might take a few minutes. Once the updates complete, JBoss Developer Studio might ask you to restart it. If prompted, say yes.
In JBoss Developer studio, go to Help > Install New Software.
In the Work with text box, type http://dl.msopentech.com/eclipse and press the “Enter” key. Now select “Windows Azure Toolkit for Java” and click “Next”. Follow through the Wizard to install the Azure plugins.
Install the 32 or 64 bit version (as applicable) of Online Services Sign-In Assistant from the following link: http://www.microsoft.com/en-us/download/details.aspx?id=28177.
Install the 32 or 64 bit version (as applicable) of PowerShell for Office 365 from the following link: http://technet.microsoft.com/en-us/library/hh974317.aspx.
Visit the GitHub repository for Java samples for Azure SDK here: https://github.com/WindowsAzure/azure-sdk-for-java-samples/tree/master/WAAD.WebSSO.JAVA. Click on the Code “<>” icon on the right and click “Download ZIP” to download the entire repository to your local machine. Then, unzip it at a particular location. Let’s assume we’ve unzipped it at “C:\AzureJavaSamples”.
Now, your JBoss Development Studio should have a “Windows Azure Deployment Project“. Let’s download the only missing component now. Fire up JBoss Developer Studio and go to File > New > Other.
In the “Wizards” filter, type “Windows Azure”. This should bring up “Windows Azure Deployment Project”.
Now click “Next” button, you will receive a prompt asking to install the latest Windows Azure SDK. Say “Yes”.
This will open a web page and download Web Platform Installer. Open the Installer and click on “Install” button.
On the resulting screen, click on “I Accept” to accept the details. Once the installation completes, you will get the completion windows as shown below. Click on “Finish” and then “Exit” to exit Web Platform Installer.
If you plan on using other Web Servers such as Tomcat or GlassFish, install them from their respective locations. If you’re installing additional servers, make sure you configure them to appropriate ports so they don’t conflict with the Web Server in which you want to debut and test your projects.
If you want to work with other IDEs such as Eclipse, go ahead and install them. For Eclipse, remember to choose the JEE version.
Now, you should be good to go. Go ahead and start developing some samples from http://www.windowsazure.com/en-us/develop/java/compute/, http://www.windowsazure.com/en-us/develop/java/data/ or http://www.windowsazure.com/en-us/develop/java/app-services/.