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

Martin Kuen martin.kuen at gmail.com
Wed May 30 16:28:48 BST 2007


Hi all,

I am new to Xapian and want to use it with Java. In order to do that I tried
to compile the Java bindings. I set XAPIAN_CONFIG and invoked "configure".
However "./configure --with-java" exits with an error.

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.

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

The script claims to look in the proper location, but doesn't find anything.

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

Any ideas?


Cheers,

Martin


More information about the Xapian-discuss mailing list