All Products
Search
Document Center

Link IoT Edge:Java SDK

Last Updated:Feb 16, 2023

The IoT Java SDK allows you to create Java applications to manage IoT Platform resources with ease. You can add the SDK as a Maven dependency to your project, or download the installation package to a local directory and install the SDK.

Install the IoT Java SDK

  1. Install a Java development environment.

    You can download a Java IDE from Java official website , and install the IDE by following the instructions.

  2. Install the IoT Java SDK.

    1. Visit Apache Maven official website to download a Maven installation package.

    2. Add a Maven dependency.

      Maven coordinates of the IoT Java SDK dependency

      <! -- https://mvnrepository.com/artifact/com.aliyun/aliyun-java-sdk-iot -->
      <dependency>
          <groupId>com.aliyun</groupId>
          <artifactId>aliyun-java-sdk-iot</artifactId>
          <version>7.7.0</version>
      </dependency>

      Public libraries

      <dependency>
          <groupId>com.aliyun</groupId>
          <artifactId>aliyun-java-sdk-core</artifactId>
          <version>3.5.1</version>
      </dependency>

Appendix

Alibaba Cloud provides OpenAPI Explorer to simplify API usage. You can use OpenAPI Explorer to search for API operations, call API operations, and dynamically generate SDK sample code. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs. On the right side of the page, you can view the sample code of an SDK on the Example Code tab. On the Debugging Result tab, you can view the real request URL and response in the JSON format.