All Products
Document Center


Last Updated: Jul 03, 2017

Use JAR package in Eclipse


  • Download STS Java SDK from Alibaba Cloud website
  • Decompress the file
  • Copy aliyun-java-sdk-core-<versionId>.jar and aliyun-java-sdk-sts-<versionId>.jar from the decompressed folder to your project folder
  • In Eclipse, right-click and choose Project > Properties > Java Build Path > Add JARs
  • Select all the JAR files you copied
  • After completing the steps above, You can use STS Java SDK in the project

The STS Java SDK in other IDEs is configured in a similar way.

Use SDK in Maven projects

Add relevant aliyun-java-sdk dependency. Take version 2.1.6 as an example. Type the following content in the <dependencies> tab:

  1. <dependency>
  2. <groupId>com.aliyun</groupId>
  3. <artifactId>aliyun-java-sdk-sts</artifactId>
  4. <version>2.1.6</version>
  5. </dependency>
  6. <dependency>
  7. <groupId>com.aliyun</groupId>
  8. <artifactId>aliyun-java-sdk-core</artifactId>
  9. <version>2.1.7</version>
  10. </dependency>