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

前端 未结 9 871
醉话见心
醉话见心 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:34

    I had pretty much the same problems, ended up doing it on my own, maybe this helps someone.

    https://github.com/mo22/jnipp

    It has a small runtime footprint (<30kb), manages references, and supports generating Java class interfaces. I.e. LocalRef> stringArray; and then using stringArray[1]->getBytes() or something.

提交回复
热议问题