Create a new JVM instance.
The path to jvm.(dll|so|dylib)
The JVM version to use
The JVM options to use
additional options to pass to the jvm
the path to the java library (JavaBridge.jar)
the path to the native library (java.*.[dll|so|dylib])
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: internal.InterfaceProxyOptions | nullImport 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: ClassConfiguration | nullImport 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: ClassConfiguration | nullCheck if this is instance of other
Set the stdout/stderr callbacks
OptionalstdoutCallback: ((err: Error | null, data?: string) => void) | nullOptionalstderrCallback: ((err: Error | null, data?: string) => void) | null
The main java class. This should only be created once per process. Any other attempts to create a new jvm instance will fail.