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.
Taking Eclipse Luna on 64-bit Windows 7 for example, follow these steps to download the Java SDKs:
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.
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.
Create a Maven project in Eclipse, or convert an existing project to a Maven project.
Open the pom.xml file under the project, and add Maven dependencies in the graphical interface or edit dependencies in the pom.xml file.
Save the configuration. The Alibaba Cloud SDK JAR packages are loaded to Maven Dependencies.
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.