Can I call Java from Node.js via JNI and how?

后端 未结 5 2018
难免孤独
难免孤独 2020-12-02 08:20

can I call Java from Node.js via JNI? Are there any examples?

5条回答
  •  生来不讨喜
    2020-12-02 08:32

    I am not aware of all the details of Node.js but i am assuming that your mentioning of JNI is actually the Java Native Interface. One can only use JNI from Java, so imho it does not make sense to access Java from JNI if you are not already in java.

    It would appear that this is the wrong approach, and you need to search the Node.js doco for their integration chapter...

提交回复
热议问题