Go to file
2022-02-22 20:29:33 +08:00
java_src/me/ehlxr update at 2022-02-22 20:29:33 by ehlxr 2022-02-22 20:29:33 +08:00
mylib update at 2022-02-22 20:29:33 by ehlxr 2022-02-22 20:29:33 +08:00
.gitignore update at 2022-02-22 20:29:33 by ehlxr 2022-02-22 20:29:33 +08:00
README.md update at 2022-02-22 20:29:33 by ehlxr 2022-02-22 20:29:33 +08:00

Rust build

cd mylib
cargo build

Java build

cd java_src
javac me/ehlxr/HelloWorld.java

Run Java

cd java_src

// Linux: export LD_LIBRARY_PATH=../mylib/target/debug/
export JAVA_LIBRARY_PATH=../mylib/target/debug/

java me.ehlxr.HelloWorld