jni_rs/README.md

280 B

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