use c++ version of jni