update at 2022-02-23 09:41:05 by ehlxr

master
ehlxr 2022-02-23 09:41:05 +08:00
parent 61b8d5338b
commit ed1ac08fe6
1 changed files with 5 additions and 4 deletions

View File

@ -12,12 +12,13 @@ cd java_src
javac me/ehlxr/HelloWorld.java
```
Run Java
Java run
```shell
cd java_src
// Linux: export LD_LIBRARY_PATH=../mylib/target/debug/
export JAVA_LIBRARY_PATH=../mylib/target/debug/
# Linux: export LD_LIBRARY_PATH=../mylib/target/debug/
# export JAVA_LIBRARY_PATH=../mylib/target/debug/
java me.ehlxr.HelloWorld
java -Djava.library.path=../mylib/target/debug/ me.ehlxr.HelloWorld
```