C++ binding for JNI/Java