Mailing List Archive

compile lucene-1.2-rc2
Hi there,

I am having trouble to get lucene-1.2-rc2 compiled. I
use windows 2000 and have installed Ant and JavaCC,
but I guess there is some thing wrong in the
configuration file for the javaCC part. My
"build.properties" file in the lucene folder looks
like this:
-------------------------------------------
# Home directory of JavaCC
javacc.home = c:/java/javacc2_1/bin/lib
javacc.zip.dir = ${javacc.home}/lib
javacc.zip = ${javacc.zip.dir}/JavaCC.zip
-------------------------------------------

"c:/java/javacc2_1" is where I installed JavaCC. I
tried every combination with or without "/bin",
"/bin/lib", but all failed. And I also tried creating
a "ant.properties" file under the lucene folder with
"javacc.home" set to "c:/java/javacc2_1/bin/lib".

Any body who can tell me how to get lucene-1.2-rc2
compiled or is there any documentations on that?

Thanks a lot.
jun


__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

--
To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>
Re: compile lucene-1.2-rc2 [ In reply to ]
What exactly is the error that you are getting?
Is it an Ant error or a Lucene error?
Does Ant know to convert forward slashes to back slashes on Windows?
Have you tried using \ instead of / in those paths?

Otis

--- cloud jun <cloudjun_other@yahoo.com> wrote:
> Hi there,
>
> I am having trouble to get lucene-1.2-rc2 compiled. I
> use windows 2000 and have installed Ant and JavaCC,
> but I guess there is some thing wrong in the
> configuration file for the javaCC part. My
> "build.properties" file in the lucene folder looks
> like this:
> -------------------------------------------
> # Home directory of JavaCC
> javacc.home = c:/java/javacc2_1/bin/lib
> javacc.zip.dir = ${javacc.home}/lib
> javacc.zip = ${javacc.zip.dir}/JavaCC.zip
> -------------------------------------------
>
> "c:/java/javacc2_1" is where I installed JavaCC. I
> tried every combination with or without "/bin",
> "/bin/lib", but all failed. And I also tried creating
> a "ant.properties" file under the lucene folder with
> "javacc.home" set to "c:/java/javacc2_1/bin/lib".
>
> Any body who can tell me how to get lucene-1.2-rc2
> compiled or is there any documentations on that?
>
> Thanks a lot.
> jun
>
>
> __________________________________________________
> Do You Yahoo!?
> Find a job, post your resume.
> http://careers.yahoo.com
>
> --
> To unsubscribe, e-mail:
> <mailto:lucene-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:lucene-user-help@jakarta.apache.org>
>


__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

--
To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>
Re: compile lucene-1.2-rc2 [ In reply to ]
Thanks, I have got it now. It's because I did not have
the optional jar for Ant.

Here is some guide on how to compile lucene-1.2-rc2 in
case someone needs it:
1) Get Ant from the jakarta website, do not forget to
download the optional jar as well.
2) Get JavaCC from
http://www.webgain.com/products/java_cc/, this is
optional because lucene-1.2-rc2 come along with
javaCC.zip in its /lib folder.
3) Run ant from the lucene folder. You don't need to
change the builde.properties file, but the
configuration is there.

jun


--- Otis Gospodnetic <otis_gospodnetic@yahoo.com>
wrote:
> What exactly is the error that you are getting?
> Is it an Ant error or a Lucene error?
> Does Ant know to convert forward slashes to back
> slashes on Windows?
> Have you tried using \ instead of / in those paths?
>
> Otis



__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

--
To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>
RE: compile lucene-1.2-rc2 [ In reply to ]
This looks like a good start for a top-level README.txt, which we need
before the 1.2 final. Besides build instructions, this should include
pointers to the documentation. Anything else folks can think of?

One correction: We should not mention downloading JavaCC, just ant and
ant-optional.jar.

Anyone want to draft the README.txt?

Doug

> -----Original Message-----
> From: cloud jun [mailto:cloudjun_other@yahoo.com]
> Sent: Thursday, November 01, 2001 11:32 PM
> To: Lucene Users List
> Subject: Re: compile lucene-1.2-rc2
>
>
> Thanks, I have got it now. It's because I did not have
> the optional jar for Ant.
>
> Here is some guide on how to compile lucene-1.2-rc2 in
> case someone needs it:
> 1) Get Ant from the jakarta website, do not forget to
> download the optional jar as well.
> 2) Get JavaCC from
> http://www.webgain.com/products/java_cc/, this is
> optional because lucene-1.2-rc2 come along with
> javaCC.zip in its /lib folder.
> 3) Run ant from the lucene folder. You don't need to
> change the builde.properties file, but the
> configuration is there.
>
> jun
>
>
> --- Otis Gospodnetic <otis_gospodnetic@yahoo.com>
> wrote:
> > What exactly is the error that you are getting?
> > Is it an Ant error or a Lucene error?
> > Does Ant know to convert forward slashes to back
> > slashes on Windows?
> > Have you tried using \ instead of / in those paths?
> >
> > Otis
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Find a job, post your resume.
> http://careers.yahoo.com
>
> --
> To unsubscribe, e-mail:
<mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:lucene-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>
Re: compile lucene-1.2-rc2 [ In reply to ]
[ Charset ISO-8859-1 unsupported, converting... ]
> This looks like a good start for a top-level README.txt, which we need
> before the 1.2 final. Besides build instructions, this should include
> pointers to the documentation. Anything else folks can think of?
>
> One correction: We should not mention downloading JavaCC, just ant and
> ant-optional.jar.
>
> Anyone want to draft the README.txt?

I'll try to spend a couple hours on this later today. I checked
out the jarkarta-lucene CVS archive last night to start playing with
the thread-safe version. Might as well build it from scratch.

What is your goal for the README.txt? Maybe it should point to
"build.txt" for build-from-checkout directions, another file for using
the .jar version, and another for the demo stuff?

Okay, I went ahead and wrote a rough draft (included below).
But I have to do a bit more fiddling before I'm done. I have two
questions; one, what version(s) of Ant does Lucene require, and two,
what versions of java can Lucene be built with and run with?

As you'll see if you read all of the following, my initial
attempt at following these instructions failed. The build.properties
and the build.xml look for a "jarkata-site2" directory parallel to the
checkout directory. I'm going to save this, go back to the mailing
list, and reread the recent messages to see if this is addresesd.


Build Instructions for Lucene-1.2-rc2

Basic steps:
0) download lucene-1.2-rc2 from the Apache Project
1) set up the JDK, Ant, and the Ant optional.jar
2) cd into the top folder of the jakarta-lucene checkout
3) run ant

Step 0) download lucene-1.2-rc2 from the Apache Project

We'll assume you already did Step 0, or you wouldn't be reading
this file. However, you might have received this file by some
alternate route, or you might have an incomplete copy of the Lucene,
so:

Lucene 1.2-rc2 is available for download at:

http://jakarta.apache.org/builds/jakarta-lucene/release/v1.2-rc2/

Download either a zip or a tarred/gzipped version of the archive,
and uncompress it into a directory of your choice.

Step 1) Set up your development environment (JDK, Ant, Ant optional jar).

We'll assume that you know how to get and set up the JDK - if you
don't, then we suggest starting at http://java.sun.com and learning more
about Java, before returning to this README.

Lucene works with JDK 1.3. Lucene works with earlier versions of
Java (WHICH VERSIONS?). However, if you're going to work with the
development version of Lucene, we recommend you stick with the most
current version of Java.

Lucene uses Apache Ant, like most of the Jakarta projects, for
build control. Ant is "kind of like make without make's wrinkles".
Ant is implemented in java and uses XML-based configuration files.
You can get it at:

http://jakarta.apache.org/ant/index.html

Specifically, you can get the binary distributions at:

http://jakarta.apache.org/builds/jakarta-ant/release/v1.4.1/bin/

(AGAIN, WHICH VERSIONS OF ANT? Obviously recommend the latest
version, but does it work with any earlier versions?)

You'll need to download both the Ant binary distribution
optional jar file. Install the binary distribution according to
the instructions under the "Installing Ant" link at:

http://jakarta.apache.org/ant/manual/index.html

Step 3) Cd into the top folder of the jarkata-lucene checkout.

The top directory of the checkout contains the build.properties
and build.xml files. You don't need to change any of the settings in
these files, but you do need to run ant from this location so it knows
where to find them.

Step 4) Run ant.

Assuming you have ant in your PATH and both of the ant jars (the
main jar and the optional jar) in your CLASSPATH, simply entering
"ant" at the shell prompt and command prompt should invoke ant, and
ant will by default look for the "build.xml" file in your current
directory, where it should find it.

Okay, so this first draft didn't work out so well. I just followed
my own instructions and I got:

$ ant
Buildfile: build.xml

BUILD FAILED

C:\cygwin\home\Administrator\jakarta-lucene\build.xml:29: C:\cygwin\home\Administrator\jakarta-site2\lib not found.

Total time: 2 seconds


Back to the drawing board, I'll have to check the list for recent
comments about this and see what I'm doing wrong.

Steven J. Owens
puff@darksleep.com

--
To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>
Re: compile lucene-1.2-rc2 [ In reply to ]
> Steven,
>
> I believe Ant 1.4 (really 1.4.1 because 1.4 was buggy) is required.
> I had Ant 1.3 until recently and it wouldn't work with anakia stuff in
> build.xml because it's recently been added to optional Ant stuff, I
> believe.

Ah, thanks, yeah, that did the trick. Okay, here's the finished
draft:

------------------------------------------------------------------------------
Build Instructions for Lucene-1.2-rc2

Basic steps:
0) download lucene-1.2-rc2 from the Apache Project
1) set up JDK 1.3, Ant 1.4, and the Ant 1.4 optional.jar
2) cd into the top folder of the jakarta-lucene checkout
3) run ant

Step 0) download lucene-1.2-rc2 from the Apache Project

We'll assume you already did Step 0, or you wouldn't be reading
this file. However, you might have received this file by some
alternate route, or you might have an incomplete copy of the Lucene,
so:

Lucene 1.2-rc2 is available for download at:

http://jakarta.apache.org/builds/jakarta-lucene/release/v1.2-rc2/

Download either a zip or a tarred/gzipped version of the archive,
and uncompress it into a directory of your choice.

Step 1) Set up your development environment (JDK 1.3, Ant 1.4, Ant 1.4
optional jar).

We'll assume that you know how to get and set up the JDK - if you
don't, then we suggest starting at http://java.sun.com and learning more
about Java, before returning to this README.

Lucene works with earlier versions of Java (WHICH VERSIONS?).
However, if you're going to work with the development version of
Lucene, we recommend you stick with the most current version of Java
(at the time of this writing, JDK 1.3). Also, note that if you're
working with the Lucene source, you'll need to use Ant (see below) and
Ant requires at least JDK 1.1 (and in the future will likely move to
requiring JDK 1.2, according to the Ant install docs).

Like most of the Jakarta projects, Lucene uses Apache Ant for
build control. Specifically, you MUST use Ant version 1.4.

Ant is "kind of like make without make's wrinkles". Ant is
implemented in java and uses XML-based configuration files. You can
get it at:

http://jakarta.apache.org/ant/index.html

Specifically, you can get the binary distributions at:

http://jakarta.apache.org/builds/jakarta-ant/release/v1.4.1/bin/

You'll need to download both the Ant binary distribution
optional jar file. Install the binary distribution according to
the instructions under the "Installing Ant" link at:

http://jakarta.apache.org/ant/manual/index.html

Step 3) Cd into the top folder of the jarkata-lucene checkout.

The top directory of the checkout contains the build.properties
and build.xml files. You don't need to change any of the settings in
these files, but you do need to run ant from this location so it knows
where to find them.

Step 4) Run ant.

Assuming you have ant in your PATH and both of the ant jars (the
main jar and the optional jar) in your CLASSPATH, simply entering
"ant" at the shell prompt and command prompt should invoke ant, and
ant will by default look for the "build.xml" file in your current
directory, where it should find it.


For further information on Lucene, go to:
http://jakarta.apache.org/lucene

We strongly suggest that you join the Lucene-User mailing list:
lucene-user-subscribe@jakarta.apache.org


Copyright 2001, Steven J. Owens (puff@darksleep.com), all rights are
assigned to Doug Cutting (or, at Doug Cutting's discretion, to the
Apache Project).

Please post suggestions, questions, corrections or additions to this
document to the lucene-user mailing list.
------------------------------------------------------------------------------

Steven J. Owens
puff@darksleep.com


--
To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>
Re: compile lucene-1.2-rc2 [ In reply to ]
Steven,

I believe Ant 1.4 (really 1.4.1 because 1.4 was buggy) is required.
I had Ant 1.3 until recently and it wouldn't work with anakia stuff in
build.xml because it's recently been added to optional Ant stuff, I
believe.

Otis


--- "Steven J. Owens" <puffmail@darksleep.com> wrote:
> [ Charset ISO-8859-1 unsupported, converting... ]
> > This looks like a good start for a top-level README.txt, which we
> need
> > before the 1.2 final. Besides build instructions, this should
> include
> > pointers to the documentation. Anything else folks can think of?
> >
> > One correction: We should not mention downloading JavaCC, just ant
> and
> > ant-optional.jar.
> >
> > Anyone want to draft the README.txt?
>
> I'll try to spend a couple hours on this later today. I checked
> out the jarkarta-lucene CVS archive last night to start playing with
> the thread-safe version. Might as well build it from scratch.
>
> What is your goal for the README.txt? Maybe it should point to
> "build.txt" for build-from-checkout directions, another file for
> using
> the .jar version, and another for the demo stuff?
>
> Okay, I went ahead and wrote a rough draft (included below).
> But I have to do a bit more fiddling before I'm done. I have two
> questions; one, what version(s) of Ant does Lucene require, and two,
> what versions of java can Lucene be built with and run with?
>
> As you'll see if you read all of the following, my initial
> attempt at following these instructions failed. The build.properties
> and the build.xml look for a "jarkata-site2" directory parallel to
> the
> checkout directory. I'm going to save this, go back to the mailing
> list, and reread the recent messages to see if this is addresesd.
>
>
> Build Instructions for Lucene-1.2-rc2
>
> Basic steps:
> 0) download lucene-1.2-rc2 from the Apache Project
> 1) set up the JDK, Ant, and the Ant optional.jar
> 2) cd into the top folder of the jakarta-lucene checkout
> 3) run ant
>
> Step 0) download lucene-1.2-rc2 from the Apache Project
>
> We'll assume you already did Step 0, or you wouldn't be reading
> this file. However, you might have received this file by some
> alternate route, or you might have an incomplete copy of the Lucene,
> so:
>
> Lucene 1.2-rc2 is available for download at:
>
> http://jakarta.apache.org/builds/jakarta-lucene/release/v1.2-rc2/
>
> Download either a zip or a tarred/gzipped version of the
> archive,
> and uncompress it into a directory of your choice.
>
> Step 1) Set up your development environment (JDK, Ant, Ant optional
> jar).
>
> We'll assume that you know how to get and set up the JDK - if
> you
> don't, then we suggest starting at http://java.sun.com and learning
> more
> about Java, before returning to this README.
>
> Lucene works with JDK 1.3. Lucene works with earlier versions
> of
> Java (WHICH VERSIONS?). However, if you're going to work with the
> development version of Lucene, we recommend you stick with the most
> current version of Java.
>
> Lucene uses Apache Ant, like most of the Jakarta projects, for
> build control. Ant is "kind of like make without make's wrinkles".
> Ant is implemented in java and uses XML-based configuration files.
> You can get it at:
>
> http://jakarta.apache.org/ant/index.html
>
> Specifically, you can get the binary distributions at:
>
> http://jakarta.apache.org/builds/jakarta-ant/release/v1.4.1/bin/
>
> (AGAIN, WHICH VERSIONS OF ANT? Obviously recommend the latest
> version, but does it work with any earlier versions?)
>
> You'll need to download both the Ant binary distribution
> optional jar file. Install the binary distribution according to
> the instructions under the "Installing Ant" link at:
>
> http://jakarta.apache.org/ant/manual/index.html
>
> Step 3) Cd into the top folder of the jarkata-lucene checkout.
>
> The top directory of the checkout contains the build.properties
> and build.xml files. You don't need to change any of the settings in
> these files, but you do need to run ant from this location so it
> knows
> where to find them.
>
> Step 4) Run ant.
>
> Assuming you have ant in your PATH and both of the ant jars (the
> main jar and the optional jar) in your CLASSPATH, simply entering
> "ant" at the shell prompt and command prompt should invoke ant, and
> ant will by default look for the "build.xml" file in your current
> directory, where it should find it.
>
> Okay, so this first draft didn't work out so well. I just
> followed
> my own instructions and I got:
>
> $ ant
> Buildfile: build.xml
>
> BUILD FAILED
>
> C:\cygwin\home\Administrator\jakarta-lucene\build.xml:29:
> C:\cygwin\home\Administrator\jakarta-site2\lib not found.
>
> Total time: 2 seconds
>
>
> Back to the drawing board, I'll have to check the list for
> recent
> comments about this and see what I'm doing wrong.
>
> Steven J. Owens
> puff@darksleep.com
>
> --
> To unsubscribe, e-mail:
> <mailto:lucene-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:lucene-user-help@jakarta.apache.org>
>


__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

--
To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>