Details
Description
I followed the instructions here to build jsvc:
https://tomcat.apache.org/tomcat-7.0-doc/setup.html#Unix_daemon
When I run the configure script, I get this:
*** Java compilation tools *** checking for JDK os include directory... Cannot find jni_md.h in /System/Library/Frameworks/JavaVM.framework/Home/ configure: error: You should retry --with-os-type=SUBDIR
(Update: I think my initial workaround was incorrect, have updated.)
You can make it work by pointing to the current command-line Java home, which can be found by running this command:
/usr/libexec/java_home
The result of this command will be something like:
/Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home
You can therefore run configure as follows:
./configure --with-java=/Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home
As Oracle JDK 1.7 is now the default/only supported JDK for command-line use in current OS X versions, this really ought to work out of the box. Don't know how configure scripts work, so can't supply a patch, sorry.
Note: I'm having an additional problem which may be related (will post as separate issue).