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.
Optional
options: null | 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.
Optional
config: 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.
Optional
config: null | ClassConfigurationimportClass
Set the stdout/stderr callbacks
Optional
stdoutCallback: null | ((err, data?) => void)Optional
stderrCallback: null | ((err, data?) => void)Generated using TypeDoc
The main java class. This should only be created once per process. Any other attempts to create a new jvm instance will fail.