[Xapian-discuss] java bindings 1.0.0 - jni.h not found

Olly Betts olly at survex.com
Wed May 30 17:51:27 BST 2007


On Wed, May 30, 2007 at 05:28:48PM +0200, Martin Kuen wrote:
> Point of failure:
>  checking for jni.h... no
>  checking for jni.h in /usr/lib/jvm/java-1.5.0-sun/include... no
>  checking for jni.h in /usr/lib/jvm/java-gcj/include... no
>  checking for jni.h in
> /System/Library/Frameworks/JavaVM.framework/Headers... no
>  configure: error: jni.h not found
> 
> Note that I have added JAVA_HOME to my path and if I look into the directory
> "/usr/lib/jvm/java-1.5.0-sun/include" there is a "jni.h" file - This
> directory does not appear if I don't set JAVA_HOME.

As James says, config.log should show why this jni.h isn't being picked
up.  The test just tries to compile:

#include <jni.h>

> Next I tried to set the variable JNI_INCLUDE_DIR. No effect at all.

JNI_INCLUDE_DIR is never actually used!  I'll fix that, but the problem
here seems to be the test for jni.h.

> OS: Ubuntu 7.04
> gcc/g++: Ubuntu 4.1.2-0ubuntu4 (gcc/g++ version 4.1.2 as ubuntu package)

That's what I'm using, so if it's not obvious what's up from config.log
I can investigate.

Cheers,
    Olly



More information about the Xapian-discuss mailing list