Install the Cloud Phone Java SDK

Updated at:

This topic describes how to install the Cloud Phone SDK for Java and the Alibaba Cloud core library.

Prerequisites

The Cloud Phone SDK for Java requires JDK 1.8 or later.

Background information

The Alibaba Cloud Developer Center provides the Maven dependencies for the Cloud Phone SDK for Java and the Alibaba Cloud core library. Use these SDKs to programmatically access Alibaba Cloud products and services.

The examples in this topic were created using IntelliJ IDEA on a 64-bit Windows 10 OS.

Procedure

  1. Configure the Maven project management tool in IntelliJ IDEA.

    • Use the Maven project management tool built into IntelliJ IDEA.

    • Visit the official Maven download page (Download Apache Maven), download the tool for your OS, and then manually configure it.

  2. Use the SDK Center to get the Maven dependency for the Alibaba Cloud core library.

  3. Use SDK Center > Cloud Phone to get the Maven dependency for Cloud Phone.

  4. Create a Maven project.

    • Method 1: Add a Maven project in IntelliJ IDEA.

    • Method 2: Convert an existing project to a Maven project.

      1. Right-click the project and select Add Framework Support....

      2. Select Maven and click OK.

  5. In your project's pom.xml file, add the tea-openapi dependency for the Alibaba Cloud core library and the eds_aic20230930 dependency for the Cloud Phone SDK.

    After you add the dependencies, Maven automatically downloads the required JAR packages.

    Note

    Use the links to the SDK Center from the preceding steps to get the latest dependency versions.

    <dependencies>
            <dependency>
                <groupId>com.aliyun</groupId>
                <artifactId>tea-openapi</artifactId>
                <version>0.3.6</version>
            </dependency>
            <dependency>
                <groupId>com.aliyun</groupId>
                <artifactId>eds_aic20230930</artifactId>
                <version>2.1.0</version>
            </dependency>
        </dependencies>
  6. Verify that the libraries have been added under External Libraries in your project.