Execute Java classes with Node JS (Meteor JS)

java, javascript, meteor

Solution

You can run them server-side the same way as any command line tool:

var exec = Npm.require('child_process').exec;

exec("java myProgram.jar param param", function (error, stdout, stderr) {
    ...
});

Problem

I am developing with Meteor JS, a node framework. A question to those of you familiar with it, would it be possible to execute code i've written in Java without using an applet? How would I go about doing this? Thank you for your time.

Original source