Creates a new JVM, using the provided classpath entries and JVM arguments
(
classpath_entries: Vec<ClasspathEntry>,
java_opts: Vec<JavaOpt>,
)
| 67 | |
| 68 | /// Creates a new JVM, using the provided classpath entries and JVM arguments |
| 69 | pub fn new_jvm( |
| 70 | classpath_entries: Vec<ClasspathEntry>, |
| 71 | java_opts: Vec<JavaOpt>, |
| 72 | ) -> errors::Result<Jvm> { |
| 73 | JvmBuilder::new() |
| 74 | .classpath_entries(classpath_entries) |
| 75 | .java_opts(java_opts) |
| 76 | .build() |
| 77 | } |
| 78 | |
| 79 | #[no_mangle] |
| 80 | pub extern "C" fn Java_org_astonbitecode_j4rs_api_invocation_NativeCallbackToRustChannelSupport_docallbacktochannel( |