Re: Re: Compile lucene

2005-02-02 Thread Helen Butler
Hi Paul,

That was the problem, I had downloaded the binaries instead of source. It's all 
up and running now..Thanks for your help

Regards
Helen Butler

-Original Message-
From: Paul Elschot <[EMAIL PROTECTED]>
To: lucene-user@jakarta.apache.org
Date: Wed, 2 Feb 2005 21:25:32 +0100
Subject: Re: Compile lucene

Helen,

I downloaded lucene-1.4.3.zip myself from one of the mirrors
(http://apache.essentkabel.com/jakarta/lucene/binaries/)

It contains the lucene demo's, and not the java sources.

The lucene-1.4.3.tar.gz there has the same problem.

It seems something is wrong with the 1.4.3 distribution.

When you need the lucene 1.4.3 jar you can download it from the above mirror,
it looks ok. to me.

In case you have done something like this before:

The following command (on a single line) will checkout the source files from cvs
into directory lucene-1.4.3 (make sure that directory is empty beforehand):

cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout -r lucene_1_4_3 -d 
lucene-1.4.3 jakarta_lucene

In there you can correct the build.xml file and do:

ant compile

to compile the source code.

Regards,
Paul Elschot


On Wednesday 02 February 2005 20:55, Helen Butler wrote:
> Hi Paul,
> 
> Thanks for your quick response.
> 
> The Build.xml was obtained from the Lucene-1.4.3.zip that I downloaded from 
> the apache website.
> 
> I changed the version in the xml file as you suggested, however the error 
> persists.
> 
> Kind Regards,
> Helen Butler
> 
> 
> -Original Message-
> From: Paul Elschot <[EMAIL PROTECTED]>
> To: lucene-user@jakarta.apache.org
> Date: Wed, 2 Feb 2005 20:39:01 +0100
> Subject: Re: Compile lucene
> 
> 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:
>   
> 
> Regards,
> Paul Elschot.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re: Compile lucene

2005-02-02 Thread Helen Butler
Hi Erik,

Thanks so much for your help-everything works now.

Kind Regards,

Helen Butler

-Original Message-
From: Erik Hatcher <[EMAIL PROTECTED]>
To: "Lucene Users List" 
Date: Wed, 2 Feb 2005 14:41:41 -0500
Subject: Re: Compile lucene


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Compile lucene

2005-02-02 Thread Paul Elschot
Helen,

I downloaded lucene-1.4.3.zip myself from one of the mirrors
(http://apache.essentkabel.com/jakarta/lucene/binaries/)

It contains the lucene demo's, and not the java sources.

The lucene-1.4.3.tar.gz there has the same problem.

It seems something is wrong with the 1.4.3 distribution.

When you need the lucene 1.4.3 jar you can download it from the above mirror,
it looks ok. to me.

In case you have done something like this before:

The following command (on a single line) will checkout the source files from cvs
into directory lucene-1.4.3 (make sure that directory is empty beforehand):

cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout -r lucene_1_4_3 -d 
lucene-1.4.3 jakarta_lucene

In there you can correct the build.xml file and do:

ant compile

to compile the source code.

Regards,
Paul Elschot


On Wednesday 02 February 2005 20:55, Helen Butler wrote:
> Hi Paul,
> 
> Thanks for your quick response.
> 
> The Build.xml was obtained from the Lucene-1.4.3.zip that I downloaded from 
> the apache website.
> 
> I changed the version in the xml file as you suggested, however the error 
> persists.
> 
> Kind Regards,
> Helen Butler
> 
> 
> -Original Message-
> From: Paul Elschot <[EMAIL PROTECTED]>
> To: lucene-user@jakarta.apache.org
> Date: Wed, 2 Feb 2005 20:39:01 +0100
> Subject: Re: Compile lucene
> 
> 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:
>   
> 
> Regards,
> Paul Elschot.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re: Compile lucene

2005-02-02 Thread Helen Butler
Hi Paul,

Thanks for your quick response.

The Build.xml was obtained from the Lucene-1.4.3.zip that I downloaded from the 
apache website.

I changed the version in the xml file as you suggested, however the error 
persists.

Kind Regards,
Helen Butler


-Original Message-
From: Paul Elschot <[EMAIL PROTECTED]>
To: lucene-user@jakarta.apache.org
Date: Wed, 2 Feb 2005 20:39:01 +0100
Subject: Re: Compile lucene

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:
  

Regards,
Paul Elschot.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Compile lucene

2005-02-02 Thread Erik Hatcher
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Compile lucene

2005-02-02 Thread Paul Elschot
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:
  

Regards,
Paul Elschot.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Compile lucene

2005-02-02 Thread Helen Butler
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Compile lucene

2003-01-12 Thread Borkenhagen, Michael (ofd-ko zdfin)
Here is the exactly link
http://www.mail-archive.com/lucene-user@jakarta.apache.org/
:))

-Ursprüngliche Nachricht-
Von: Oshima, Scott [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 10. Januar 2003 20:00
An: Lucene Users List
Betreff: RE: Compile lucene


Anyone can send me a link to the lucene mailing list email archives?  these
emails build up fast and i can't store them locally, but too valuable to
delete.  thanks.

-Original Message-
From: "Romo García, Javier" [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 12, 2002 1:19 AM
To: Lucene Users List
Subject: Compile lucene


Hi everyone!

Is there a good guide anywhere to compile the source code of lucene?
I don't know very well how to start, specially with javacc.

Thanks


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Compile lucene

2003-01-10 Thread Incze Lajos
On Fri, Jan 10, 2003 at 11:00:21AM -0800, Oshima, Scott wrote:
> Anyone can send me a link to the lucene mailing list email archives?  these emails 
>build up fast and i can't store them locally, but too valuable to delete.  thanks.

I use http://www.mail-archive.com.

Enter lucene into the "Find list" text entry and you'll get two
"lucene-dev"'s and a "lucene-user".


incze

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Compile lucene

2003-01-10 Thread Oshima, Scott
Anyone can send me a link to the lucene mailing list email archives?  these emails 
build up fast and i can't store them locally, but too valuable to delete.  thanks.

-Original Message-
From: "Romo García, Javier" [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 12, 2002 1:19 AM
To: Lucene Users List
Subject: Compile lucene


Hi everyone!

Is there a good guide anywhere to compile the source code of lucene?
I don't know very well how to start, specially with javacc.

Thanks


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




again: cant compile lucene

2002-09-17 Thread markus

Dear Lucene Experts

the question at the end of this message did not yield any results so far. I am
really confused as to what i might be doing wrong here. 
It would be helpful for me, if someone could send me their versions of the
classes in question, ie. 
org.apache.lucene.analysis.standard.Token
org.apache.lucene.analysis.standard.StandardTokenizer
org.apache.lucene.analysis.standard.ParseException

Alternatively, i would be happy about any reply to my original posting, which
starts below.

thanks, markus

- original message --
when trying to compile Lucene (1.2) i get errors in
org.apache.lucene.analysis.standard.StandardTokenizer and
org.apache.lucene.analysis.standard.ParseException.
Both classes complain about missing fields in 
org.apache.lucene.analysis.standard.Token. The missing fields are beginLine,
beginColumen, endLine and endColumn.
I used JavaCC (version 2.1) to produce the classes.
Does anyone know what mistake i made?

Tanks,
Markus Krogemann

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: Compile lucene

2002-09-12 Thread Nader S. Henein

Just follow the steps on the site or search the FAQ it's pretty simple.

Nader

-Original Message-
From: Romo Garcia, Javier [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 12, 2002 12:19 PM
To: Lucene Users List
Subject: Compile lucene


Hi everyone!

Is there a good guide anywhere to compile the source code of lucene?
I don't know very well how to start, specially with javacc.

Thanks



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Compile lucene

2002-09-12 Thread "Romo García, Javier"

Hi everyone!

Is there a good guide anywhere to compile the source code of lucene?
I don't know very well how to start, specially with javacc.

Thanks




Re: Cannot compile Lucene

2002-04-24 Thread Robert A. Decker

Unfortunately I didn't add the lucene files to source code control until
after I had gotten the project built and working, and therefore after my
edits...

Here's some of the changes I do remember though:
Get the source to the java JDK 1.2 StringBuffer and add it as
org.apache.lucene.StringBuffer. This is because I'm stuck using the 1.1.8
version of the JDK which is missing some StringBuffer methods used by
lucene.

Fix up some exceptions. For example, in
org.apache.lucene.analysis.standard.StandardFilter, the next() method now
throws java.io.IOException, 
org.apache.lucene.analysis.standard.ParseException

I believe before it just throw IOException...

I believe the problems mostly just came up in the javaCC generated files. 

I think this is another one. In org.apache.lucene.queryparser.QueryParser,
the method final public Query Query(String field) now throws:
org.apache.lucene.queryParser.ParseException,
org.apache.lucene.analysis.standard.ParseException

thanks,
rob

http://www.robdecker.com/
http://www.planetside.com/

On Wed, 24 Apr 2002, Otis Gospodnetic wrote:

> Just curious, what exactly people need to do to 'fix up the
> exceptions'?  Editing of which files to change what to what?
> 
> I'd just like to document that somewhere, that's why I'm asking...
> 
> Otis
> 
> --- "Robert A. Decker" <[EMAIL PROTECTED]> wrote:
> > I got it working under Project Builder. You just have to fix up the
> > exceptions yourself. Also, you'll get some warnings (121 warnings to
> > be
> > exact) during the linking stage stating that an Integer Constant is
> > too
> > large - just ignore these - they're wrong.
> > 
> > thanks,
> > rob
> > 
> > http://www.robdecker.com/
> > http://www.planetside.com/
> > 
> > On Wed, 24 Apr 2002, Avi Drissman wrote:
> > 
> > > I'm using Lucene rc4 and JavaCC 2.1. I'm trying to compile Lucene 
> > > without Ant, by tossing the files into Project Builder (Mac OS X).
> > I 
> > > ran JavaCC on StandardTokenizer.jj with the standard options,
> > tossed 
> > > the resulting files into the project, and now I'm running into a
> > few 
> > > errors:
> > > 
> > > 1. StandardTokenizer.jj:173 is
> > > 
> > > org.apache.lucene.analysis.Token next() throws IOException
> > > 
> > > which is JavaCC'd into StandardTokenizer.java:26 as
> > > 
> > > final public org.apache.lucene.analysis.Token next() throws 
> > > ParseException, IOException
> > > 
> > > which isn't a valid override. javac says
> > > 
> > > >next() in org.apache.lucene.analysis.standard.StandardTokenizer 
> > > >cannot override next() in org.apache.lucene.analysis.TokenStream; 
> > > >overridden method does not throw 
> > > >org.apache.lucene.analysis.standard.ParseException
> > > 
> > > 2. StandardTokenizer.java:26 says
> > > 
> > > token.beginColumn,token.endColumn
> > > 
> > > and there are no such member variables.
> > > 
> > > Am I totally missing something here?
> > > 
> > > Avi
> > > 
> > > -- 
> > > Avi Drissman
> > > [EMAIL PROTECTED]
> > > Argh! This darn mailserver is trunca
> > > 
> > > --
> > > To unsubscribe, e-mail:  
> > <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:  
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > 
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Games - play chess, backgammon, pool and more
> http://games.yahoo.com/
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Cannot compile Lucene

2002-04-24 Thread David Black

I'm writing a WebObjects application with Lucene and ProjectBuilder and 
had to compile the Lucene project via ant and include the jar in my 
project resources.  Ideally, I would like to create a Framework with the 
Lucene source and I haven't figured out how to get the javacc part to 
workI think it's just a hack to the build scripts in the targets 
section.  I will be curious to see how this is accomplished and will do 
some research on this topic.

David



On Wednesday, April 24, 2002, at 11:48 AM, Avi Drissman wrote:

> At 8:40 AM -0700 4/24/02, Peter Carlson wrote:
>
>> I've never used project builder (netbeans on OSX), but you may want to 
>> try
>> not including the .jj files.
>
> I don't include the .jj files. I compiled them with JavaCC 2.1 and 
> included the resulting .java files in Project Builder.
>
> I had to do something similar where I took the existing query parser 
> .jj file, tweaked it, and JavaCC'd it. I had no problems compiling the 
> resulting .java files there.
>
> Avi
>
> -- Avi Drissman
> [EMAIL PROTECTED]
> Argh! This darn mailserver is trunca
>
> --
> To unsubscribe, e-mail:    [EMAIL PROTECTED]>
> For additional commands, e-mail:  [EMAIL PROTECTED]>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Cannot compile Lucene

2002-04-24 Thread Otis Gospodnetic

Just curious, what exactly people need to do to 'fix up the
exceptions'?  Editing of which files to change what to what?

I'd just like to document that somewhere, that's why I'm asking...

Otis

--- "Robert A. Decker" <[EMAIL PROTECTED]> wrote:
> I got it working under Project Builder. You just have to fix up the
> exceptions yourself. Also, you'll get some warnings (121 warnings to
> be
> exact) during the linking stage stating that an Integer Constant is
> too
> large - just ignore these - they're wrong.
> 
> thanks,
> rob
> 
> http://www.robdecker.com/
> http://www.planetside.com/
> 
> On Wed, 24 Apr 2002, Avi Drissman wrote:
> 
> > I'm using Lucene rc4 and JavaCC 2.1. I'm trying to compile Lucene 
> > without Ant, by tossing the files into Project Builder (Mac OS X).
> I 
> > ran JavaCC on StandardTokenizer.jj with the standard options,
> tossed 
> > the resulting files into the project, and now I'm running into a
> few 
> > errors:
> > 
> > 1. StandardTokenizer.jj:173 is
> > 
> > org.apache.lucene.analysis.Token next() throws IOException
> > 
> > which is JavaCC'd into StandardTokenizer.java:26 as
> > 
> > final public org.apache.lucene.analysis.Token next() throws 
> > ParseException, IOException
> > 
> > which isn't a valid override. javac says
> > 
> > >next() in org.apache.lucene.analysis.standard.StandardTokenizer 
> > >cannot override next() in org.apache.lucene.analysis.TokenStream; 
> > >overridden method does not throw 
> > >org.apache.lucene.analysis.standard.ParseException
> > 
> > 2. StandardTokenizer.java:26 says
> > 
> > token.beginColumn,token.endColumn
> > 
> > and there are no such member variables.
> > 
> > Am I totally missing something here?
> > 
> > Avi
> > 
> > -- 
> > Avi Drissman
> > [EMAIL PROTECTED]
> > Argh! This darn mailserver is trunca
> > 
> > --
> > To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > 
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 


__
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Cannot compile Lucene

2002-04-24 Thread Robert A. Decker

I got it working under Project Builder. You just have to fix up the
exceptions yourself. Also, you'll get some warnings (121 warnings to be
exact) during the linking stage stating that an Integer Constant is too
large - just ignore these - they're wrong.

thanks,
rob

http://www.robdecker.com/
http://www.planetside.com/

On Wed, 24 Apr 2002, Avi Drissman wrote:

> I'm using Lucene rc4 and JavaCC 2.1. I'm trying to compile Lucene 
> without Ant, by tossing the files into Project Builder (Mac OS X). I 
> ran JavaCC on StandardTokenizer.jj with the standard options, tossed 
> the resulting files into the project, and now I'm running into a few 
> errors:
> 
> 1. StandardTokenizer.jj:173 is
> 
> org.apache.lucene.analysis.Token next() throws IOException
> 
> which is JavaCC'd into StandardTokenizer.java:26 as
> 
> final public org.apache.lucene.analysis.Token next() throws 
> ParseException, IOException
> 
> which isn't a valid override. javac says
> 
> >next() in org.apache.lucene.analysis.standard.StandardTokenizer 
> >cannot override next() in org.apache.lucene.analysis.TokenStream; 
> >overridden method does not throw 
> >org.apache.lucene.analysis.standard.ParseException
> 
> 2. StandardTokenizer.java:26 says
> 
> token.beginColumn,token.endColumn
> 
> and there are no such member variables.
> 
> Am I totally missing something here?
> 
> Avi
> 
> -- 
> Avi Drissman
> [EMAIL PROTECTED]
> Argh! This darn mailserver is trunca
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Cannot compile Lucene

2002-04-24 Thread Avi Drissman

At 8:40 AM -0700 4/24/02, Peter Carlson wrote:

>I've never used project builder (netbeans on OSX), but you may want to try
>not including the .jj files.

I don't include the .jj files. I compiled them with JavaCC 2.1 and 
included the resulting .java files in Project Builder.

I had to do something similar where I took the existing query parser 
.jj file, tweaked it, and JavaCC'd it. I had no problems compiling 
the resulting .java files there.

Avi

-- 
Avi Drissman
[EMAIL PROTECTED]
Argh! This darn mailserver is trunca

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Cannot compile Lucene

2002-04-24 Thread Peter Carlson

I've never used project builder (netbeans on OSX), but you may want to try
not including the .jj files.

--Peter

On 4/24/02 8:02 AM, "Avi Drissman" <[EMAIL PROTECTED]> wrote:

> I'm using Lucene rc4 and JavaCC 2.1. I'm trying to compile Lucene
> without Ant, by tossing the files into Project Builder (Mac OS X). I
> ran JavaCC on StandardTokenizer.jj with the standard options, tossed
> the resulting files into the project, and now I'm running into a few
> errors:
> 
> 1. StandardTokenizer.jj:173 is
> 
> org.apache.lucene.analysis.Token next() throws IOException
> 
> which is JavaCC'd into StandardTokenizer.java:26 as
> 
> final public org.apache.lucene.analysis.Token next() throws
> ParseException, IOException
> 
> which isn't a valid override. javac says
> 
>> next() in org.apache.lucene.analysis.standard.StandardTokenizer
>> cannot override next() in org.apache.lucene.analysis.TokenStream;
>> overridden method does not throw
>> org.apache.lucene.analysis.standard.ParseException
> 
> 2. StandardTokenizer.java:26 says
> 
> token.beginColumn,token.endColumn
> 
> and there are no such member variables.
> 
> Am I totally missing something here?
> 
> Avi


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Cannot compile Lucene

2002-04-24 Thread Avi Drissman

I'm using Lucene rc4 and JavaCC 2.1. I'm trying to compile Lucene 
without Ant, by tossing the files into Project Builder (Mac OS X). I 
ran JavaCC on StandardTokenizer.jj with the standard options, tossed 
the resulting files into the project, and now I'm running into a few 
errors:

1. StandardTokenizer.jj:173 is

org.apache.lucene.analysis.Token next() throws IOException

which is JavaCC'd into StandardTokenizer.java:26 as

final public org.apache.lucene.analysis.Token next() throws 
ParseException, IOException

which isn't a valid override. javac says

>next() in org.apache.lucene.analysis.standard.StandardTokenizer 
>cannot override next() in org.apache.lucene.analysis.TokenStream; 
>overridden method does not throw 
>org.apache.lucene.analysis.standard.ParseException

2. StandardTokenizer.java:26 says

token.beginColumn,token.endColumn

and there are no such member variables.

Am I totally missing something here?

Avi

-- 
Avi Drissman
[EMAIL PROTECTED]
Argh! This darn mailserver is trunca

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: compile lucene-1.2-rc2

2001-11-02 Thread Steven J. Owens

> 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:
 [EMAIL PROTECTED]


Copyright 2001, Steven J. Owens ([EMAIL PROTECTED]), 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
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: compile lucene-1.2-rc2

2001-11-02 Thread Otis Gospodnetic

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" <[EMAIL PROTECTED]> 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
> [EMA

Re: compile lucene-1.2-rc2

2001-11-02 Thread Steven J. Owens

[ 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
[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: compile lucene-1.2-rc2

2001-11-02 Thread Doug Cutting

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:[EMAIL PROTECTED]]
> 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 <[EMAIL PROTECTED]>
> 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:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: compile lucene-1.2-rc2

2001-11-01 Thread cloud jun

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 <[EMAIL PROTECTED]>
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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: compile lucene-1.2-rc2

2001-11-01 Thread Otis Gospodnetic

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 <[EMAIL PROTECTED]> 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:  
> 
> For additional commands, e-mail:
> 
> 


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

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




compile lucene-1.2-rc2

2001-11-01 Thread cloud jun

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:   
For additional commands, e-mail: