edit-icon download-icon

Download and install Java SDKs

Last Updated: Jan 31, 2018

Earlier versions of the Java SDKs were available as standalone download packages. While the new versions of all Alibaba Cloud Java SDKs are distributed in the Maven repository for easy management.

Download Java SDKs

Taking Eclipse Luna on 64-bit Windows 7 for example, follow these steps to download the Java SDKs:

  1. Visit official Maven download page, and download the Maven software that corresponds to your operating system. You can verify the downloaded files by checking the Checksum files.

    Download

  2. Visit Java SDK download page, add the Maven repository storing Alibaba Cloud SDKs to the Maven software, decompress the downloaded Maven package, and add information about Alibaba Cloud Maven repository to the settings.xml file in the conf directory.

    Conf

  3. Create a Maven project in Eclipse, or convert an existing project to a Maven project.

    03

    Maven

  4. Open the pom.xml file under the project, and add Maven dependencies in the graphical interface or edit dependencies in the pom.xml file.

    05

    06

  5. Save the configuration. The Alibaba Cloud SDK JAR packages are loaded to Maven Dependencies.

    Dependencies

How to determine the SDK version

The differences between the earlier SDK and new SDK are highlighted in the following table.

Items Compared Earlier SDK New SDK
Operation request method execute() getAcsResponse()
Class to hold AccessKey and AccessKeySecret AliyunClient IClientProfile
Method to generate storage credentials objects new DefaultAliyunClient(APIUrl, Access Key, Access Key Secret) DefaultProfile.getProfile(RegionId, Access Key, Access Key Secret)
Prefix of packages com.aliyun.api com.aliyuncs

If you are currently using the earlier version of the SDK, we recommend that you switch to the latest version to explore and use the advanced features.

Thank you! We've received your feedback.