Oracle have moved jni_md.h down into .../include/darwin so the configure script fails with an error about jni.h not present ( because jni.h tries to include jni_md and fails ).
Solution: I got it to build by just copying jni_md.h up into ..../include.
You might be able to do some configure trickiness to work around the whole issue though