Skip to content

Files

Latest commit

9b2d456 · Dec 7, 2016

History

History
130 lines (108 loc) · 6.09 KB

java-download-azure-sdk.md

File metadata and controls

130 lines (108 loc) · 6.09 KB
title description services documentationcenter author manager editor ms.assetid ms.service ms.workload ms.tgt_pltfrm ms.devlang ms.topic ms.date ms.author
Download the Azure SDK for Java
Learn how to download the Azure SDK for Java, with sample code provided for Maven projects and basic installation steps for the Azure Tookit for Eclipse.
java
rmcmurray
erikre
4b8f8fe6-1b26-4bb4-9be9-6ae757a59e66
multiple
na
multiple
Java
article
11/01/2016
robmcm

Download the Azure SDK for Java

This article contains instructions for downloading and installing the Azure Libraries for Java.

Note: The Azure Libraries for Java are distributed under the Apache License, Version 2.0.

Azure Libraries for Java - Manual Download

To manually install the Azure Libraries for Java, click http://go.microsoft.com/fwlink/?LinkId=690320 to download a ZIP file which contains all of the libraries and all dependencies.

Once you have downloaded the zip file to your computer, extract the contents and use one of the following options to add the JAR files to your project:

  • Import the JAR files into your Java project in Eclipse.
  • Configure the Build Path for your Java project in Eclipse to include the path to the JAR files.

For detailed information on setting up build paths in Eclipse, see the Java Build Path article at the Eclipse website.

Note: See the license.txt and ThirdPartyNotices.txt file inside the ZIP for license and other information.

Azure Libraries for Java - Building with Maven

Step 1 - Set up your project to use Maven for build

To create Maven projects in Eclipse which use the Azure libraries for Java, following the instructions in the Getting Started with Azure Management Libraries for Java article.

Step 2 - Configure your Maven settings with the requisite dependencies

Once your project has been configured to use Maven for build, you can add the requisite dependencies to your pom.xml file using syntax like the following example. Note that you do not need to add every dependency that is listed in the following example; you only need to add the specific dependencies which your project requires.

Note

Within each <version> element in the following sample, replace the "n.n.n" placeholders in this example with valid version numbers, which can be obtained from the Azure Libraries Repository on Maven.

<dependency>
    <groupId>com.microsoft.azure</groupId>
    <artifactId>azure-svc-mgmt</artifactId>
    <version>n.n.n</version>
</dependency>
<dependency>
    <groupId>com.microsoft.azure</groupId>
    <artifactId>azure-svc-mgmt-compute</artifactId>
    <version>n.n.n</version>
</dependency>
<dependency>
    <groupId>com.microsoft.azure</groupId>
    <artifactId>azure-svc-mgmt-network</artifactId>
    <version>n.n.n</version>
</dependency>
<dependency>
    <groupId>com.microsoft.azure</groupId>
    <artifactId>azure-svc-mgmt-sql</artifactId>
    <version>n.n.n</version>
</dependency>
<dependency>
    <groupId>com.microsoft.azure</groupId>
    <artifactId>azure-svc-mgmt-storage</artifactId>
    <version>n.n.n</version>
</dependency>
<dependency>
    <groupId>com.microsoft.azure</groupId>
    <artifactId>azure-svc-mgmt-websites</artifactId>
    <version>n.n.n</version>
</dependency>
<dependency>
    <groupId>com.microsoft.azure</groupId>
    <artifactId>azure-svc-mgmt-media</artifactId>
    <version>n.n.n</version>
</dependency>
<dependency>
    <groupId>com.microsoft.azure</groupId>
    <artifactId>azure-servicebus</artifactId>
    <version>n.n.n</version>
</dependency>
<dependency>
    <groupId>com.microsoft.azure</groupId>
    <artifactId>azure-serviceruntime</artifactId>
    <version>n.n.n</version>
</dependency>

Installing the Azure Toolkit for Eclipse

This section contains basic instructions for installing the Azure Toolkit for Eclipse; for detailed instructions, see Installing the Azure Toolkit for Eclipse.

Prerequisites

  1. Windows operting systems listed in the What's New in the Azure Toolkit for Eclipse article.
  2. Macintosh or Linux operting systems listed in the What's New in the Azure Toolkit for Eclipse article.
  3. Eclipse IDE for Java EE Developers, Indigo or later. This can be downloaded from http://www.eclipse.org/downloads/.

Basic Installation steps

  1. In Eclipse, from the Help menu, select Install New Software.
  2. Enter the site location http://dl.microsoft.com/eclipse and press Enter.
  3. Select the items to be installed and click Finish.

The Azure Toolkit for Eclipse uses the latest version of the Azure SDK. This can be downloaded using the Web Platform Installer (WebPI) at http://go.microsoft.com/fwlink/?LinkID=252838. However, if you don't have it installed, when you create your first Azure deployment project, the Azure Toolkit for Eclipse will automatically install the appropriate version of the Azure SDK.

See Also

Azure Toolkit for Eclipse

Installing the Azure Toolkit for Eclipse

Creating a Hello World Application for Azure in Eclipse

For more information about using Azure with Java, see the Azure Java Developer Center.