First try with JNI.