Create a new JVM instance.
The path to jvm.(dll|so|dylib)
The JVM version to use.
The JVM options to use.
Get the loaded jars.
Get the actual JVM version. This may not match the wanted JVM version.
Get the wanted JVM version. This may not match the actual JVM version.
Append a single or multiple jars to the classpath.
Optionaloptions: null | internal.InterfaceProxyOptionsImport a java class Will import the class and parse all of its methods and fields. The imported class will be cached for future use.
Optionalconfig: null | ClassConfigurationImport a java class (async) Will return a promise that resolves to the class instance.
If the underlying Java throwable should be contained in the error object,
set asyncJavaExceptionObjects to true. This will cause the JavaScript
stack trace to be lost. Setting this option in the global config will
not affect this method, this option has to be set each time this
method is called.
Optionalconfig: null | ClassConfigurationCheck if this is instance of other
Set the stdout/stderr callbacks
OptionalstdoutCallback: null | ((err: null | Error, data?: string) => void)OptionalstderrCallback: null | ((err: null | Error, data?: string) => void)
The main java class. This should only be created once per process. Any other attempts to create a new jvm instance will fail.