You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Helen Butler <X0...@itnet.ie> on 2005/02/02 20:26:29 UTC
Compile lucene
Hi
Im trying to Compile Lucene but am encountering the following error on typing ant from the root of Lucene-1.4.3
C:\lucene-1.4.3>ant
Buildfile: build.xml
init:
compile-core:
BUILD FAILED
C:\lucene-1.4.3\build.xml:140: srcdir "C:\lucene-1.4.3\src\java" does not e=
xist!
I've installed a jdk and ant successfully and set the following CLASSPATH
C:\lucene-1.4.3\lucene-demos-1.4.3.jar;C:\lucene-1.4.3\lucene-1.4.3.jar
Would really appreciate any help or ideas
Thank You
Helen
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org
Re: Compile lucene
Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On Feb 2, 2005, at 2:26 PM, Helen Butler wrote:
> Hi
>
> Im trying to Compile Lucene but am encountering the following error on
> typing ant from the root of Lucene-1.4.3
>
>
>
> C:\lucene-1.4.3>ant
> Buildfile: build.xml
>
> init:
>
> compile-core:
>
> BUILD FAILED
> C:\lucene-1.4.3\build.xml:140: srcdir "C:\lucene-1.4.3\src\java" does
> not e=
> xist!
>
>
> I've installed a jdk and ant successfully and set the following
> CLASSPATH
> C:\lucene-1.4.3\lucene-demos-1.4.3.jar;C:\lucene-1.4.3\lucene-1.4.3.jar
first rule of using Ant, don't use a CLASSPATH. It is unnecessary, not
to mention you put JAR files in there that you appear to be trying to
build.
Do you have the source code distribution of Lucene? It appears not, or
you'd have src/java available.
Erik
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org
Re: Compile lucene
Posted by Paul Elschot <pa...@xs4all.nl>.
Helen,
On Wednesday 02 February 2005 20:26, Helen Butler wrote:
> Hi
>
> Im trying to Compile Lucene but am encountering the following error on
typing ant from the root of Lucene-1.4.3
>
> C:\lucene-1.4.3>ant
> Buildfile: build.xml
>
> init:
>
> compile-core:
>
> BUILD FAILED
> C:\lucene-1.4.3\build.xml:140: srcdir "C:\lucene-1.4.3\src\java" does not e=
> xist!
It seems the java source files were not extracted.
How did you obtain the build.xml file?
Once the compilation works, you'll notice that the lucene jar being built
has a 1.5 version number because of an incorrect version number
in the 1.4.3 build.xml.
You need to correct the version property in the build.xml file:
<property name="version" value="1.4.3"/>
Regards,
Paul Elschot.
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org