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
What about using Thrift or Protocol Buffers to facilitate your Java to C++ calls?