This topic describes how to install the Cloud Phone SDK for Java and Alibaba Cloud core library.
Prerequisites
Before you install Cloud Phone for Java, make sure that you have installed Java Development Kit (JDK) 1.8.0 or later.
Background information
Alibaba Cloud Developer Center offers the Cloud Phone SDK for Java, along with Maven project dependencies for the Alibaba Cloud SDK core library. This enables you to write code that supports access to Alibaba Cloud services by using their SDKs.
In this example, the Windows 10 64-bit OS and IntelliJ IDEA are used.
Procedure
Use one of the following methods to configure Maven in IntelliJ IDEA:
Use Maven that is integrated in IntelliJ IDEA.
Download Maven based on your OS from the official website and configure Maven. For more information, see Downloading Apache Maven 3.8.6.
Go to SDK Center to obtain Maven project dependencies for the Alibaba Cloud SDK core library.
Go to SDK Center > Cloud Phone to obtain Maven project dependencies for the Cloud Phone SDK.
Create a Maven project by using one of the following methods:
Method 1: Add a Maven project to IntelliJ IDEA.
Method 2: Convert an existing project into a Maven project.
Right-click the project that you want to convert and select Add Framework Support....
In the Add Frameworks Support window, select Maven and click OK.
In the pom.xml file, add the tea-openapi dependency for the Alibaba Cloud SDK core library and the eds_aic20230930 dependency for the Cloud Phone SDK.
After the dependencies are added, Maven automatically downloads the relevant JAR packages.
NoteSDK packages are regularly updated. For the latest versions, download dependencies directly from the official Alibaba Cloud SDKs website.
<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>
Check External Libraries in the directory of the project.
If the content highlighted in the following figure appears, the dependencies are added.