This topic describes how to install Function Compute SDK for Java.
Prepare the environment
- Install Java Development Kit (JDK). For more information, visit Java SE Downloads.
Note JDK 1.6 or later is required. After you install JDK, you can run the
java -version
command to check the installed version. - Install Maven. For more information, visit Download Apache Maven.
Install the SDK
Add the following dependency to the pom.xml file:
<dependency>
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-fc</artifactId>
<version>1.8.12</version>
</dependency>