rust编写的jni库示例
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
221 B

5 years ago
# java通过JNI调用rust
编译rust代码
```
$ cd native/mylib
$ cargo build
```
编译java代码
5 years ago
```
5 years ago
$ cd ../../
$ javac java/src/HelloWorld.java
$ java java/src/HelloWorld
```
看一看到输出了 Hello,fanruan.