Hi, I met a problem when I binding JAVA. 1. download xapian-bindings-0.9.10.tar.gz to my local. 2. unzip binding file. 3. input ./configure --with-java in cygwin. 4 give me error: checking for java... /cygdrive/c/Program Files/Java/jdk1.5.0_11/bin/java checking for javac... /cygdrive/c/Program Files/Java/jdk1.5.0_11/bin/javac checking for jar... /cygdrive/c/Program Files/Java/jdk1.5.0_11/bin/jar checking for jni.h... no checking for jni.h in /usr/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 I checked the jni.h file. It is in my folder C:\Program Files\Java\jdk1.5.0_11\include I googled a lot and cannot find useful information and try to modify configure file and cannot succeed. Thank you so much! jeff ___________________________________________________________ ????????-3.5G???20M??? http://cn.mail.yahoo.com
On Wed, Apr 04, 2007 at 05:56:27AM +0800, ?? ?? wrote:> I checked the jni.h file. It is in my folder > C:\Program Files\Java\jdk1.5.0_11\include > > I googled a lot and cannot find useful information and > try to modify configure file and cannot succeed.It's a bit of a hassle. Try searching for /usr/lib/jvm/java-gcj/include, and add "/cygdrive/c/Program Files/Java/jdk1.5.0_11/include" on the end... can't guarantee that will work, and I have to leave right now. If it does, let us know! (Can we not frob the path to JAVAC or similar if we don't find the jni.h in a well known location?) J -- /--------------------------------------------------------------------------\ James Aylett xapian.org james@tartarus.org uncertaintydivision.org
hi, James Thank you so much for your instant reply. I have used that way before, but it does not work. Because there is a space "Program Files" so it will regard two path one is \Prpgram and the other is \Files. Thanks ting ___________________________________________________________ ????????-3.5G???20M??? http://cn.mail.yahoo.com
Please keep replies on-list, so more people can help you :) On Wed, Apr 04, 2007 at 06:29:49AM +0800, ?? ?? wrote:> Thank you so much for your instant reply. I have used > that way before, but it does not work. Because there > is a space "Program Files" so it will regard two path > one is \Prpgram and the other is \Files.Even if you enquote it? Actually, looking at our configure code that will certainly break. Damn. In that case, hack out all the code round there (from java_ok=no down to immediately before if test yes $java_ok ; then) and replace it with two lines: java_ok=yes JAVA_CPPFLAGS='-I/cygdrive/c/Program\ Files/....' This is really a last-ditch attempt, and probably won't work. The single quotes are important... (and the .... needs to be replaced with the rest of your include path). Generally, spaces in file paths are wrong. There are quite a lot of Windows applications that can't cope either, so whatever gave Microsoft the idea of putting critical directories on the disk with spaces in, I don't know :-( J -- /--------------------------------------------------------------------------\ James Aylett xapian.org james@tartarus.org uncertaintydivision.org
Hi, Olly I have tried to use $JAVA_HOME/include and/or $JDK_HOME/include here. It still does not work here. Could you please try to $JAVA_HOME/include and/or $JDK_HOME/include. I think it should be good way to solve the problem. Thanks Jeff ___________________________________________________________ ????????-3.5G???20M??? http://cn.mail.yahoo.com