It is possible. 1. You can wrapper the java calls to a separate process, and run it in a subprocess, use stdin/stdout for communication.
OR 2. use JNI, you can implement a native module for nodejs, and call java method in the native module via JNI. On Friday, August 4, 2017 at 2:13:48 PM UTC+8, Reza Razavipour wrote: > > I know node can make Java calls. > What I want to do is the reverse. I want to make my Java code into a node > module. > > Is that possible? If so, how? If not, why? > -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/8f2b4b49-785c-4879-9f3c-76060b8699f9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
