I want to run a java command with Nodejs
This command works with me on bat file
"C:\Program Files\Java\jdk1.8.0_121\bin\java.exe" -Xmx1024m -XX:+UseParallelGC -Dfile.encoding=UTF-8 -classpath "<path>\app\netlogo-6.1.1.jar" org.nlogo.headless.Main --model modelname.nlogo --setup-file setup.xml --experiment experiment1 --table table-output.csv
How can i run this command with Nodejs ? Have I to use Node child_process, and it's possible to run this after deploying my app on server ?