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

Ralf Mattes rm at seid-online.de
Wed May 30 17:09:58 BST 2007


bvOn Wed, 2007-05-30 at 17:57 +0200, Martin Kuen wrote:
> Hi again,
> 
> ok - for clarification:
> 
> 1. "add JAVA_HOME to my path": yes I added it to my *environment* - wrong
> terminology, my fault
> 
> 2. java-package: yes, the (ubuntu-packaged) jdk is installed

Ah - just checked locally (don't use java that much):
% dpkg -L sun-java5-jdk |grep jni.h
 /usr/lib/jvm/java-1.5.0-sun-1.5.0.11/include/jni.h

Hmm - looks like the configure script looksin the wrong place. As a
quick fix you might try to link /usr/lib/jvm/java-1.5.0-sun-1.5.0.11/
to /usr/lib/jvm/java-1.5.0-sun/

 Cheers, RalfD
 	
> cu,
> 
> Martin
> 
> On 5/30/07, Martin Kuen <martin.kuen at gmail.com> wrote:
> >
> > 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
> >
> >
> >
> >
> _______________________________________________
> Xapian-discuss mailing list
> Xapian-discuss at lists.xapian.org
> http://lists.xapian.org/mailman/listinfo/xapian-discuss




More information about the Xapian-discuss mailing list