From 4585adca1475c11615f10f9586cf306e4ce818df Mon Sep 17 00:00:00 2001 From: richie Date: Tue, 23 Jul 2019 15:14:54 +0800 Subject: [PATCH] =?UTF-8?q?readme=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- readme.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 readme.md diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..de57c85 --- /dev/null +++ b/readme.md @@ -0,0 +1,17 @@ +# java通过JNI调用rust + +编译rust代码 + +``` +$ cd native/mylib +$ cargo build +``` + +编译java代码 + +```java +$ cd ../../ +$ javac java/src/HelloWorld.java +$ java java/src/HelloWorld +``` +看一看到输出了 Hello,fanruan. \ No newline at end of file