You can now find compilation instructions for the Lucene 1.3 query engine source code on the
IR software page.
--
ToniRath - 29 Sep 2003
Q: I have some problems when I try to download the "lucene-1.2.tar.gz" and
the "Xerces-J-bin.2.5.0.tar.gz" files from the specified links.
The problems occur after I downloaded the files and try to expand them;
it says both files are corrupted. The lucene-1.2.tar.gz has only
611,106
bytes, and the Xerces-J-bin.2.5.0.tar.gz has only 3,700,469 bytes. I
tried to download several times, but the files size doesn't change. I
wonder if you can check the file size on the server.
A: those file sizes are exactly correct and the files should uncompress fine.
The decompression command "tar zxvf ...", which I mention on the
software page is a shorthand and only works on certain UNIX systems. If
that is what gives you trouble, try
gunzip -c archive.tar.gz | tar xvf -
instead (replace archive.tar.gz with the archive you want to decompress).
In case you are on a WinXX machine: try using either the latest WinRAR,or WinZIP (go to google to find out where to download these programs). The former should definitely work.
Sometimes there is also a problem with the browser you use to download
the
files: sometimes the last file extension gets lost during a download
process. Make sure the archives end with ".tar.gz". If not, rename the
downloaded file(s) accordingly.
--
ToniRath - 29 Sep 2003
Q: I get the following error message (or a similar one) when I run
java SearchFiles index queries.txt > results.txt
Exception in thread "main" java.lang.NoClassDefFoundError: SearchFiles
A: Your classpath is not set correctly. Go through the list on the
software installation page and make sure you downloaded all files to the correct locations and then set your classpath as described.
On
Windows systems, your classpath needs to be set as follows:
go to a command window (e.g. Start->Run->type "command" and hit return)
and type the following lines (or even better: put them into a .bat file and
execute it). You have to replace
by the path where you
unpacked lucene-1.2.tar.gz and the xerces package, e.g. "C:\CS646":
set CLASSPATH=%CLASSPATH%;<YOURCS646FOLDER>\lucene-1.2\lucene-1.2.jar
set CLASSPATH=%CLASSPATH%;<YOURCS646FOLDER>\lucene-1.2\lucene-demos-1.2.jar
set CLASSPATH=%CLASSPATH%;<YOURCS646FOLDER>\xerces-2_5_0\xml-apis.jar
set CLASSPATH=%CLASSPATH%;<YOURCS646FOLDER>\xerces-2_5_0\xml-Parser.jar
set CLASSPATH=%CLASSPATH%;<YOURCS646FOLDER>\xerces-2_5_0\xercesImpl.jar
set CLASSPATH=%CLASSPATH%;.
-- ToniRath - 25 Sep 2003
to top