update at 2022-02-25 17:06:09 by ehlxr
This commit is contained in:
parent
2758c25d35
commit
0819343f0e
25
README.md
25
README.md
@ -1,24 +1,7 @@
|
|||||||
Rust build
|
Rust bindings to the JNI Demo.
|
||||||
|
|
||||||
|
Run
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
cd mylib
|
> make java_run
|
||||||
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
|
|
||||||
```
|
```
|
Loading…
Reference in New Issue
Block a user