Java launcher with JNI