update jni code