Looking for a convenient way to call Java from C++

前端 未结 9 869
醉话见心
醉话见心 2021-01-30 13:55

It seems most documentation or helper libraries relating to JNI (Java Native Interface) are concerned with calling native code from Java. This seems to be the main use of it, ev

9条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-30 14:38

    Since CORBA doesn't seem to be what you want, here are links describing how to start JVM from C/C++ and calling JAVA-methods.

    http://java.sun.com/docs/books/jni/html/invoke.html and http://java.sys-con.com/node/45840

    PS: When interfacing Java with C++ you should also have a look at JNA or bridj.

提交回复
热议问题