You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+38-38Lines changed: 38 additions & 38 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,19 +22,19 @@ If you have any problem while using Alibaba Cloud SDK for Java, please [submit a
22
22
23
23
## Requirements
24
24
25
-
-To use Alibaba Cloud SDK for Java, you must have an Alibaba Cloud account as well as an `AccessKey ID` and an `AccessKey Secret`. Create and view your AccessKey on the [RAM console](https://ram.console.aliyun.com"RAM console") or contact your system administrator.
25
+
- To use Alibaba Cloud SDK for Java, you must have an Alibaba Cloud account as well as an `AccessKey ID` and an `AccessKey Secret`. Create and view your AccessKey on the [RAM console](https://ram.console.aliyun.com"RAM console") or contact your system administrator.
26
26
27
-
-To use the Alibaba Cloud SDK for Java to access the APIs of a product, you must first activate the product on the [Alibaba Cloud console](https://home.console.aliyun.com/?spm=5176.doc52740.2.4.QKZk8w) if required.
27
+
- To use the Alibaba Cloud SDK for Java to access the APIs of a product, you must first activate the product on the [Alibaba Cloud console](https://home.console.aliyun.com/?spm=5176.doc52740.2.4.QKZk8w) if required.
28
28
29
-
-The Alibaba Cloud Java SDK requires JDK 1.6 or later.
29
+
- The Alibaba Cloud Java SDK requires JDK 1.6 or later.
30
30
31
31
## Installation
32
32
33
-
If you use Apache Maven to manage Java projects, you only need to add corresponding dependencies to the pom.xml files of the projects. You can download the Maven dependencies of different cloud products in [Alibaba Cloud SDK](https://www.alibabacloud.com/support/developer-resources?spm=a3c0i.7911826.675768.dnavresources1.32a0737buJ2Rr4).
33
+
If you use Apache Maven to manage Java projects, you only need to add corresponding dependencies to the pom.xml files of the projects. You can download the Maven dependencies of different cloud products in [Alibaba Cloud developer resources](https://help.aliyun.com/learn/developer.html).
34
34
35
-
You must install the SDK core library for any SDK you use. For example, to call the ECS SDK, you must install both the ECS SDK and the Alibaba Cloud SDK for Java core library.
35
+
You must install `aliyun-java-sdk-core` library no matter which product development kit you want to use. For example, to call the ECS SDK, you need to install `aliyun-java-sdk-core` library and `aliyun-java-sdk-ecs`library.
36
36
37
-
For example, with Alibaba Cloud SDK for Java core library latest version and ECS SDK latest version, you need to declare the two SDKs in the pom.xml file.
37
+
To use the Ecs SDK as an example, you only need to declare the following two dependencies in the `pom.xml` file.
38
38
39
39
```xml
40
40
<dependency>
@@ -69,38 +69,38 @@ The following code example shows the three main steps to use Alibaba Cloud SDK f
69
69
3. Initiate the request and handle the response or exceptions.
70
70
71
71
```java
72
-
packagecom.testprogram;
73
-
importcom.aliyuncs.profile.DefaultProfile;
74
-
importcom.aliyuncs.DefaultAcsClient;
75
-
importcom.aliyuncs.IAcsClient;
76
-
importcom.aliyuncs.exceptions.ClientException;
77
-
importcom.aliyuncs.exceptions.ServerException;
78
-
importcom.aliyuncs.ecs.model.v20140526.*;
79
-
publicclassMain {
80
-
publicstaticvoidmain(String[] args) {
81
-
// Create and initialize a DefaultAcsClient instance
If you use Apache Maven to manage Java projects, you only need to add corresponding dependencies to the pom.xml files of the projects. You can download the Maven dependencies of different cloud products in [Alibaba Cloud SDK](https://www.alibabacloud.com/support/developer-resources?spm=a3c0i.7911826.675768.dnavresources1.32a0737buJ2Rr4).
4
+
If you use Apache Maven to manage Java projects, you only need to add corresponding dependencies to the `pom.xml` files of the projects. You can download the Maven dependencies of different cloud products in [Alibaba Cloud developer resources](https://help.aliyun.com/learn/developer.html).
5
5
6
-
You must install the Alibaba Cloud SDK for Java core library for any SDK you use. For example, to call the ECS SDK, you must install both the ECS SDK and the Alibaba Cloud SDK for Java core library.
7
-
8
-
For example, with SDK core library latest version and ECS SDK latest version, you need to declare the two SDKs in the pom.xml file.
6
+
You must install `aliyun-java-sdk-core` library no matter which product development kit you want to use. For example, to call the ECS SDK, you need to install `aliyun-java-sdk-core` library and `aliyun-java-sdk-ecs` library.
9
7
8
+
To use the Ecs SDK as an example, you only need to declare the following two dependencies in the `pom.xml` file:
10
9
```xml
11
10
<dependency>
12
11
<groupId>com.aliyun</groupId>
@@ -20,7 +19,7 @@ For example, with SDK core library latest version and ECS SDK latest version, yo
20
19
</dependency>
21
20
```
22
21
23
-
If maven is not downloading jar packages from a central repository, you need to add this dependency in the pom.xml file, or a NoClassDefFoundError exception will be reported
22
+
If maven is not downloading jar packages from a central repository, you need to add this dependency in the `pom.xml` file, or a NoClassDefFoundError exception will be reported
0 commit comments