Searching in java/jni