Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Locating jni.h in a sensible manner

843829Mar 12 2008 — edited Mar 17 2008
Hi!

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 14 2008
Added on Mar 12 2008
5 comments
364 views