-
Notifications
You must be signed in to change notification settings - Fork 178
Home
Yaroslav Gaponov edited this page Nov 15, 2013
·
10 revisions
Methods:
- void setEntryPointClassName(className)
- void setEntryPointMethodName(methodName)
- void setLogLevel(level)
- ClassArea loadClassFile(fileName)
- void loadClassFiles(dirName)
- ClassArea loadJSFile(fileName)
- void loadJarFile(fileName)
- void run(arguments)
- DEBUG = 1
- ERROR = 2
- INFO = 4
- WARN = 8
var JVM = require("node-jvm");
var jvm = new JVM();
jvm.setLogLevel(7);
var entryPointClassName = jvm.loadJarFile("./Main.jar");
jvm.setEntryPointClassName(entryPointClassName);
jvm.on("exit", function(code) {
process.exit(code);
});
jvm.run([15]);