rust编写的jni库示例
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
richie 4585adca14 readme更新 5 years ago
java/src 提交示例 5 years ago
native/mylib 提交示例 5 years ago
.gitignore 提交示例 5 years ago
readme.md readme更新 5 years ago

readme.md

java通过JNI调用rust

编译rust代码

$ cd native/mylib
$ cargo build

编译java代码

$ cd ../../
$ javac java/src/HelloWorld.java 
$ java java/src/HelloWorld

看一看到输出了 Hello,fanruan.