add JNI snippets.