Calling Java code from Rust via JNI.
The interface is not yet stable.
JVM options:
-verbose:jni
-Xcheck:jni:trace
The code is tested on Linux and macOS.
Your platform might need adjustments in build.rs
.
Trying to run may give:
dyld: Library not loaded: @rpath/libjvm.dylib
Referenced from: ./target/debug/rucaja
Reason: image not found
Abort trap: 6
this might require something like:
sudo ln -s $(/usr/libexec/java_home)/jre/lib/server/libjvm.dylib /usr/local/lib
Licensed under either of
at your option.