Apply JNI