runJvm
fun PolyglotContext.runJvm(mainClassName: String, mainMethodName: String = "main", arguments: Array<String> = arrayOf()): Int
Run the entrypoint of a guest JVM application. This extension attempts to locate a static method with the specified mainMethodName in a class defined by a fully-qualified mainClassName.
A class with the specified mainClassName must be present in the guest classpath, as configured by the JvmConfig during the construction of the engine.
The resolved method must include a single parameter in its signature, with type Array<String>
, otherwise this call will fail.