Add JNI support.