Download the appropriate binary for your operating system on the releases page:
.so
for (default or Debian-based) Linux.dylib
for OSX
(Optional) Verify the PGP signature by running gpg --verify ${file}.asc
. Our fingerprint is 83F9 49C6 E7E2 F0A2 9564 2DEE 62F5 7B1B 8792 8CAC
.
If you encounter issues related to linked libraries, you may be able to get a working library built for your system by building from source.
This binary should be placed in your Java library path, either by adding it to your LD_LIBRARY_PATH
or the -Djava.library.path
JVM option,
and can then be loaded by calling:
java.lang.System.loadLibrary("ironoxide_java")
The SDK is published to Maven.
All of the SDK classes can be imported from the com.ironcorelabs.sdk
package.
Further documentation is available on our docs site.
- Rust toolchain installed
JAVA_HOME
environment variable setclang
installed
From the root of this repository run cargo build -p ironoxide-java
. The resulting target/debug/build/ironoxide-java-*/out/java
directory will have the JNI binding code for the Java side and target/debug
will have the dynamic library file you need to pull into your Java code. It will be named libironoxide_java.so
or libironoxide_java.dylib
depending on your environment. This library will only work on the architecture from which it was built.