add jni code