<<O>>  Difference Topic Lucene (r1.4 - 29 Sep 2003 - ToniRath)

META TOPICPARENT WebHome
Deleted:
<
<

You can now find compilation instructions for the Lucene 1.3 query engine source code on the IR software page.
Added:
>
>

-- ToniRath - 29 Sep 2003
Changed:
<
<

>
>

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 -


Added:
>
>
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
 <<O>>  Difference Topic Lucene (r1.3 - 29 Sep 2003 - ToniRath)

META TOPICPARENT WebHome
Changed:
<
<
-- ToniRath - 25 Sep 2003
>
>
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 get the following error message (or a similar one) when I run java SearchFiles index queries.txt > results.txt

Line: 11 to 13

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)

Changed:
<
<
type the following lines (or even better: put them into a .bat file and
>
>
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":

Line: 22 to 24

set CLASSPATH=%CLASSPATH%;\xerces-2_5_0\xercesImpl.jar set CLASSPATH=%CLASSPATH%;.
Added:
>
>
-- ToniRath - 25 Sep 2003
 <<O>>  Difference Topic Lucene (r1.2 - 25 Sep 2003 - ToniRath)

META TOPICPARENT WebHome
Deleted:
<
<

-- ToniRath - 25 Sep 2003
Changed:
<
<
  • Q: I get the following error message (or a similar one) when I run
>
>

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
Changed:
<
<
  • 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.
>
>

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)

 <<O>>  Difference Topic Lucene (r1.1 - 25 Sep 2003 - ToniRath)
Line: 1 to 1
Added:
>
>
META TOPICPARENT WebHome

-- ToniRath - 25 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) 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%;.
View topic | Diffs | r1.4 | > | r1.3 | > | r1.2 | More
Revision r1.1 - 25 Sep 2003 - 16:59 - ToniRath
Revision r1.4 - 29 Sep 2003 - 23:10 - ToniRath