最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Execute Java classes with Node JS (Meteor JS) - Stack Overflow

programmeradmin4浏览0评论

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) {
    ...
});
发布评论

评论列表(0)

  1. 暂无评论