building to jni