Java JNI examples.