I run ./configure --with-java and receive this error: checking for java... /usr/bin/java checking for javac... /usr/bin/javac checking for jar... /usr/bin/jar checking for jni.h... yes checking for Java path separator... test failed configure: error: Couldn't compile and run a simple Java program Please any can help me I need install for use Xapian from java. I am using xapian-bindings-0.9.9, and give me the same error that for xapian-bindings-1.0.3 Thanks al.
Aleph Thomas wrote:> I run > > ./configure --with-java > > and receive this error: > > checking for java... /usr/bin/java > checking for javac... /usr/bin/javac > checking for jar... /usr/bin/jar > checking for jni.h... yes > checking for Java path separator... test failed > configure: error: Couldn't compile and run a simple Java program > > Please any can help me I need install for use Xapian from java. I am > using xapian-bindings-0.9.9, and give me the same error that for > xapian-bindings-1.0.3 > > Thanks > > al. >Just a wild guess, but do you have JAVA_HOME and CLASSPATH defined in your environment? Jim.> > >
On Mon, Nov 05, 2007 at 02:10:34PM -0500, Aleph Thomas wrote:> checking for java... /usr/bin/java > checking for javac... /usr/bin/javac > checking for jar... /usr/bin/jar > checking for jni.h... yes > checking for Java path separator... test failed > configure: error: Couldn't compile and run a simple Java program > > Please any can help me I need install for use Xapian from java. I am > using xapian-bindings-0.9.9, and give me the same error that for > xapian-bindings-1.0.3This is the program which configure tries to compile: public class conftest { public static void main(String[] args) { System.out.println(System.getProperty("path.separator")); } } Any output from the failed compilation will be in config.log. If you can't figure it out, open a bug report and attach config.log (please don't send it to the list - it's rather large). Cheers, Olly
Hello all, I solve the problem with the java configure the think was that ubuntu by default have the gij for java , and this have severals problems, only remove gij and install java 5 or 6 thanks all about On 11/6/07, Aleph Thomas <alepht@gmail.com> wrote:> Hello Olly, I update to 1.0.4 and give me the same problem. > > Thanks > > al. >