admin管理员组

文章数量:1404608

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.

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.

Share Improve this question asked Jul 25, 2013 at 1:57 TheProofIsTriviumTheProofIsTrivium 8082 gold badges13 silver badges26 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 11

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

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

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

本文标签: javascriptExecute Java classes with Node JS (Meteor JS)Stack Overflow