Posted By:
Amrun_Elisabeth
Posted On:
Thursday, May 6, 2004 08:44 AM
Hi, I've the following problem. I've edited the lucene-code to index files. I'm able to execute the program in JBuilder, but I want to write a routine which is called e.g. every night. Now I want to start the project from a batfile. But it doesn't work. I get a NoClassDefFoundError: org.apache.lucene.analysis.Analyzer here is my bat-file: set ROOT=. set PRJ=IndexFiles set SRC=%ROOT%\%PRJ%src set OUT=%ROOT%\%PRJ%classes if not exist %OUT% md %OUT% set CLASSPATH=.;..jar-fileslucene-1.3-final.jar;..jar-filesconnectionfactory.jar;..jar-filesclasses12.jar; javac -classpath %CLASSPATH% -sourcepath %SRC% -d %OUT% %SRC%indexfilesI
More>>
Hi,
I've the following problem. I've edited the lucene-code to index files. I'm able to execute the program in JBuilder, but I want to write a routine which is called e.g. every night. Now I want to start the project from a batfile. But it doesn't work. I get a NoClassDefFoundError: org.apache.lucene.analysis.Analyzer
here is my bat-file:
set ROOT=.
set PRJ=IndexFiles
set SRC=%ROOT%\%PRJ%src
set OUT=%ROOT%\%PRJ%classes
if not exist %OUT% md %OUT%
set CLASSPATH=.;..jar-fileslucene-1.3-final.jar;..jar-filesconnectionfactory.jar;..jar-filesclasses12.jar;
javac -classpath %CLASSPATH% -sourcepath %SRC% -d %OUT% %SRC%indexfilesIndexFiles.java
cd IndexFilesclasses
java -classpath %CLASSPATH% indexfiles.IndexFiles
empdocs
empsindex
thx Amrûn
<<Less