more jni code generation