Expand description
Create a Java Virtual Machine with classpath dependencies easily.
This crate allows you to easily create a JVM with jarfiles added to the classpath to use with e.g. JNI.
§Example
use jvm_init::JvmEngineBuilder;
let engine = JvmEngineBuilder::default()
.add_dependency(&my_dependency, "example.jar")
.check_jni()
.try_init()?;
// Use the thread handle with JNI
let env = engine.attach_current_thread()?;