Sample JNI code.