lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anita Srinivas" <sriniv...@tecin.mu>
Subject Re: indexing
Date Thu, 18 Apr 2002 05:30:25 GMT
The command is as follows :

I change directory to (for eg - xyz) and I invoke this command from jsp file

Process pr2 = rt2.exec("cmd /c start java
org.apache.lucene.demo.IndexHTML -create -index ../../../../opt/lucene/index
../../../fdj/admin/");

It doesnt work. It gives  me classdefnot found error :
org.apache.lucene.demo .
But at the command prompt, from xyz directory :

"java org.apache.lucene.demo.IndexHTML -create -index
../../../../opt/lucene/index ../../../fdj/admin/ "

works fine.  Where am I going wrong?

Thanks for your help.
Anita

----- Original Message -----
From: "Christoph Kukulies" <kuku@gilberto.physik.rwth-aachen.de>
To: "Lucene Users List" <lucene-user@jakarta.apache.org>
Sent: Wednesday, April 17, 2002 5:06 PM
Subject: Re: indexing


> On Wed, Apr 17, 2002 at 05:00:24PM +0400, Anita Srinivas wrote:
> > Hi,
> >
> > I am a newbie..
> >
> > I am testing by writing a jsp file where I convert Pdf files to txt
which works fine(xpdf-windows version). Next I want to index these files so
as to include the new txt files in the index.
> >
> > I typed the following at the cmd prompt
> > java org.apache.lucene.demo.IndexHTML -create -index indexpath ..
> >
> > This works fine
> >
> > But when I call the command prompt frm jsp and execute this command. It
does not include the new txt files.
>
> How do you invoke the command in the jsp file??
>
>
> --
> Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de
>
> --
> 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>


Mime
View raw message