re-added JNI resolving for java library support (should not affect standalone compilation when JNI isn't present)
re-added JNI resolving for java library support (should not affect standalone compilation when JNI isn't present)

ls-cwi/yoshiko