update at 2022-02-25 17:06:09 by ehlxr
This commit is contained in:
		
							
								
								
									
										25
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										25
									
								
								README.md
									
									
									
									
									
								
							@@ -1,24 +1,7 @@
 | 
			
		||||
Rust build
 | 
			
		||||
Rust bindings to the JNI Demo.
 | 
			
		||||
 | 
			
		||||
Run
 | 
			
		||||
 | 
			
		||||
```shell
 | 
			
		||||
cd mylib
 | 
			
		||||
cargo build
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Java build
 | 
			
		||||
 | 
			
		||||
```shell
 | 
			
		||||
cd java_src
 | 
			
		||||
javac me/ehlxr/HelloWorld.java
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Java run
 | 
			
		||||
 | 
			
		||||
```shell
 | 
			
		||||
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
 | 
			
		||||
> make java_run
 | 
			
		||||
```
 | 
			
		||||
		Reference in New Issue
	
	Block a user