Skip to content

Commit b43c049

Browse files
atptroJacksonTian
authored andcommitted
change README file
1 parent b15470c commit b43c049

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@ For example, with SDK core library latest version and ECS SDK latest version, yo
4242
<version>[4.16.0,10.0.0)</version>
4343
</dependency>
4444
```
45+
46+
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
47+
```xml
48+
<dependency>
49+
<groupId>com.google.code.gson</groupId>
50+
<artifactId>gson</artifactId>
51+
<version>2.8.5</version>
52+
</dependency>
53+
```
4554
## Initiate a call
4655

4756
The following code example shows the three main steps to use Alibaba Cloud Java SDK:

README_zh.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/aef3826e57ca444fb217bab8edaed195)](https://www.codacy.com/app/aliyun/aliyun-openapi-java-sdk?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=aliyun/aliyun-openapi-java-sdk&amp;utm_campaign=Badge_Grade)
77
[![Appveyor Badge](https://ci.appveyor.com/api/projects/status/bymi868y6443gwdp?svg=true)](https://ci.appveyor.com/project/aliyun/aliyun-openapi-java-sdk)
88

9+
[English document](./README.md)
10+
911
欢迎使用阿里云开发者工具套件(SDK)。阿里云Java SDK让您不用复杂编程即可访问云服务器、云监控等多个阿里云服务。这里向您介绍如何获取阿里云Java SDK并开始调用。
1012
如果您在使用 SDK 的过程中遇到任何问题,欢迎前往[阿里云SDK问答社区](https://yq.aliyun.com/tags/type_ask-tagid_23350)提问,提问前请阅读[提问引导](https://help.aliyun.com/document_detail/93957.html)。亦可在当前 GitHub [提交 Issues](https://github.com/aliyun/aliyun-openapi-java-sdk/issues/new)
1113

@@ -31,6 +33,15 @@
3133
<version>[4.16.0,10.0.0)</version>
3234
</dependency>
3335
```
36+
37+
如果 maven 没有从中央存储库下载 jar 包,则需要将此依赖项添加到`pom.xml`文件中,否则将报告 NoClassDefFoundError 异常
38+
```xml
39+
<dependency>
40+
<groupId>com.google.code.gson</groupId>
41+
<artifactId>gson</artifactId>
42+
<version>2.8.5</version>
43+
</dependency>
44+
```
3445
## 开始调用
3546
以下这个代码示例向您展示了调用阿里云Java SDK的3个主要步骤:
3647
1. 创建DefaultAcsClient实例并初始化

0 commit comments

Comments
 (0)