Sorry i am new to this and don't have much experience. I have the jar file that takes one parameter and returns me a json with the result. Can someone please tell me how to execute my jar with javascript? I have tried this but doesn't work.
var exec = require('child_process').exec, child;
child = exec('java -jar C:\\..\\..\\myjar.jar',
function (error, stdout, stderr){
console.log('stdout: ' + stdout);
console.log('stderr: ' + stderr);
if(error !== null){
console.log('exec error: ' + error);
}
});