Go to file
2022-02-25 10:13:00 +08:00
java_src/me/ehlxr update at 2022-02-25 09:57:08 by ehlxr 2022-02-25 09:57:08 +08:00
mylib update at 2022-02-25 10:13:00 by ehlxr 2022-02-25 10:13:00 +08:00
.gitignore update at 2022-02-23 09:39:30 by ehlxr 2022-02-23 09:39:30 +08:00
Makefile update at 2022-02-23 09:39:30 by ehlxr 2022-02-23 09:39:30 +08:00
README.md update at 2022-02-23 09:41:05 by ehlxr 2022-02-23 09:41:05 +08:00

Rust build

cd mylib
cargo build

Java build

cd java_src
javac me/ehlxr/HelloWorld.java

Java run

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