edit-icon download-icon

Installation

Last Updated: Aug 14, 2018

Download SDK

For more information, see OSS SDK for Java 2.8.2 API.

Install SDK

To use OSS Java SDK in Maven, you only need to add the corresponding dependencies to the pom.xml file. This example uses OSS Java SDK 2.8.3. Add the following content to <dependencies>:

  1. <dependency>
  2. <groupId>com.aliyun.oss</groupId>
  3. <artifactId>aliyun-sdk-oss</artifactId>
  4. <version>2.8.3</version>
  5. </dependency>

Method Two: Import jar files into Eclipse

Take OSS Java SDK 2.8.3 as an example. To import jar files into Eclipse, follow these steps:

  1. Download the Java SDK.
  2. Decompress the Java SDK.
  3. Copy the aliyun-sdk-oss-2.8.3.jar file and all files from the lib folder to your project.
  4. Right-click your project name in Eclipse. Select Properties > Java Build Path > Libraries > Add JARs.
  5. Select all jar files you have copied in step 3 and import them to Libraries.
Thank you! We've received your feedback.