Browse Source

readme更新

master
richie 5 years ago
parent
commit
4585adca14
  1. 17
      readme.md

17
readme.md

@ -0,0 +1,17 @@
# java通过JNI调用rust
编译rust代码
```
$ cd native/mylib
$ cargo build
```
编译java代码
```java
$ cd ../../
$ javac java/src/HelloWorld.java
$ java java/src/HelloWorld
```
看一看到输出了 Hello,fanruan.
Loading…
Cancel
Save