Skip to content

Commit

Permalink
add Java example
Browse files Browse the repository at this point in the history
  • Loading branch information
thermalogic committed Aug 9, 2023
1 parent 90a7736 commit cf9bc9e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
/Cargo.lock
*.exe
*.pdb
*.jar
*.class
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ repository = "https://github.com/thermalogic/IF97/"
license = "MIT"
keywords = ["IF97", "IAPWS-IF97"]
categories = ["science"]
exclude=["*.jar","*.class"]

[lib]
crate-type = ["rlib","cdylib"]
Expand Down
8 changes: 5 additions & 3 deletions demo_using_lib/demo.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
/*
The Java example with Java Native Access(JNA)
https://github.com/java-native-access/jna
javac -cp jna.jar demo.java
java -cp .;jna.jar demo
Download JNA: https://repo1.maven.org/maven2/net/java/dev/jna/jna/5.13.0/jna-5.13.0.jar
javac -cp jna.jar demo.java
java -cp .;jna.jar demo
*/
import com.sun.jna.Native;
import com.sun.jna.Library;
Expand Down

0 comments on commit cf9bc9e

Please sign in to comment.