I'm trying to build a JNI project, but I can't seem to find the JNI headers (e.g. jni.h). I've installed "Java for Mac OS X 10.7 Developer Package" from https://developer.apple.com/downloads/.
Various online resources suggest the headers should be in locations such as /System/Library/Frameworks/JavaVM.framework/Headers or /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/include, but I can't find them anywhere -- the installer doesn't seem to be creating them.
I see other JDK components -- just for example, /System/Library/Frameworks/JavaVM.framework/Commands/javah -- but not the JNI headers. Any suggestions?
Update: technomage pointed out that Apple now installs the JDK under /Library/Java/JavaVirtualMachines, and the JNI headers were at /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/include/jni.h.
But I'm still stuck on my actual goal, which is to build the JNI wrappers for LevelDB (per instructions at github.com/fusesource/leveldbjni). To point Maven at the proper JDK, I added /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/bin to the front of my PATH, and set JAVA_HOME to /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home. After chugging for a while, Maven now fails with:
[INFO] --- maven-hawtjni-plugin:1.5:build (default) @ leveldbjni-osx ---
[INFO] Extracting /Users/steve/leveldb/leveldbjni/leveldbjni/target/leveldbjni-99-master-SNAPSHOT-native-src.zip to /Users/steve/leveldb/leveldbjni/leveldbjni-osx/target/native-build-extracted
[INFO] executing: /bin/sh -c ./configure --disable-ccache --prefix=/Users/steve/leveldb/leveldbjni/leveldbjni-osx/target/native-build/target --with-leveldb=/Users/steve/leveldb/leveldb --with-snappy=/Users/steve/leveldb/snappy-1.0.3 --with-universal --with-leveldb=/Users/stev