Add Java JNI solution.