I have a simple nodejs server up and running. I am running into trouble when I try to spawn a child process. the jar file I am trying to access, is in the same directory as the
You're executing java. -jar and done.jar are arguments to pass.
java
-jar
done.jar
var child = require('child_process').spawn( 'java', ['-jar', 'done.jar', 'argument to pass in'] );
You will also need to specify the full path to java, or make sure that java is specified in the OS path.