Locating jni.h in a sensible manner
843829Mar 12 2008 — edited Mar 17 2008Hi!
I'm working on a project that has to use JNI. (I say that to ward off the people who will helpfully suggest that pure Java is better... sorry, not an option)
Currently, I'm using autoconf/automake to run the project, which is working fine. But in an attempt to be more Java community friendly, I was wanting to move the build system to use ANT. The problem is, there doesn't seem to be any (sensible) way to determine where jni.h lives.
Is there a magical property that contains this information anywhere? Python's setuptools and Perl's MakeMaker seem to be able to help compile C extensions reliably in a cross-platform manner... is there no corresponding, standard way to do this with Java? If there isn't, where should I look or ask to add this ability?
Thanks!
Monty