update at 2022-02-25 17:06:09 by ehlxr

This commit is contained in:
ehlxr 2022-02-25 17:06:09 +08:00
parent 2758c25d35
commit 0819343f0e

View File

@ -1,24 +1,7 @@
Rust build
Rust bindings to the JNI Demo.
Run
```shell
cd mylib
cargo build
```
Java build
```shell
cd java_src
javac me/ehlxr/HelloWorld.java
```
Java run
```shell
cd java_src
# Linux: export LD_LIBRARY_PATH=../mylib/target/debug/
# export JAVA_LIBRARY_PATH=../mylib/target/debug/
java -Djava.library.path=../mylib/target/debug/ me.ehlxr.HelloWorld
> make java_run
```