After chugging for a while, Maven now fails with: - maven-hawtjni-plugin:1.5:build (default) leveldbjni-osx. 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.
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.īut I'm still stuck on my actual goal, which is to build the JNI wrappers for LevelDB (per instructions at /fusesource/leveldbjni). I see other JDK components - just for example, /System/Library/Frameworks/amework/Commands/javah - but not the JNI headers. Various online resources suggest the headers should be in locations such as /System/Library/Frameworks/amework/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've installed "Java for Mac OS X 10.7 Developer Package" from.
I'm trying to build a JNI project, but I can't seem to find the JNI headers (e.g.