Java_SDK_EN.md 1.3 KB
Newer Older
B
barrierye 已提交
1 2
# Paddle Serving Client Java SDK

T
TeslaZhao 已提交
3
([简体中文](Java_SDK_CN.md)|English)
B
barrierye 已提交
4

B
barrierye 已提交
5 6 7 8
Paddle Serving provides Java SDK,which supports predict on the Client side with Java language. This document shows how to use the Java SDK.

## Getting started

B
barrierye 已提交
9

B
barrierye 已提交
10 11 12 13 14 15 16 17 18 19 20
### Prerequisites

```
- Java 8 or higher
- Apache Maven
```

The following table shows compatibilities between Paddle Serving Server and Java SDK.

| Paddle Serving Server version | Java SDK version |
| :---------------------------: | :--------------: |
T
22  
Thomas Young 已提交
21
|             0.5.0             |      0.0.1       |
B
barrierye 已提交
22

T
Thomas Young 已提交
23
1.    Directly use the provided Java SDK as the client for prediction
B
barrierye 已提交
24 25
### Install Java SDK

B
barrierye 已提交
26 27 28 29 30 31 32 33
You can download jar and install it to the local Maven repository:

```shell
wget https://paddle-serving.bj.bcebos.com/jar/paddle-serving-sdk-java-0.0.1.jar
mvn install:install-file -Dfile=$PWD/paddle-serving-sdk-java-0.0.1.jar -DgroupId=io.paddle.serving.client -DartifactId=paddle-serving-sdk-java -Dversion=0.0.1 -Dpackaging=jar
```

### Maven configure
B
barrierye 已提交
34

B
fix doc  
barrierye 已提交
35
```text
B
barrierye 已提交
36 37 38 39 40 41 42
 <dependency>
     <groupId>io.paddle.serving.client</groupId>
     <artifactId>paddle-serving-sdk-java</artifactId>
     <version>0.0.1</version>
 </dependency>
```

T
Thomas Young 已提交
43
2.    Use it after compiling from the source code. See the [document](../java/README.md).
B
barrierye 已提交
44

T
try 1  
Thomas Young 已提交
45

T
Thomas Young 已提交
46
3.    examples for using the java client, see the See the [document](../java/README.md).
B
barrierye 已提交
47