JNI experiments