pub unsafe fn JNI_CreateJavaVM(
arguments: *mut JavaVMInitArgs,
) -> Result<(JavaVM, JNIEnv), jint>Expand description
Directly calls JNI_CreateJavaVM with the provided arguments.
§Errors
JNI implementation specific error constants like JNI_EINVAL
§Panics
Will panic if the JVM shared library has not been loaded yet. Will panic if the JVM shared library retruned unexpected values.
§Safety
The Safety of this fn is implementation dependant. On Hotspot JVM’s this fn cannot be called successfully more than once. Subsequent calls are undefined behaviour.