java-runner
v0.0.1
Published
run java by node.js
Downloads
4
Readme
java-runner
组装java执行命令
var JavaRunner = require('../index');
test = new JavaRunner('com.imbugs.Test');
test.addOption("-Xmx1024m");
test.addOption("-Xms128m");
test.setExtLibDirs("libs");
test.addClasspath("test.jar");
console.log(test.getCommand());
// $JAVA_HOME/bin/java -Xmx1024m -Xms128m -Djava.ext.dirs=libs -cp .:test.jar com.imbugs.Test