dcsimg
NoClassDefFoundError: org.apache.lucene.analysis.Analyzer
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

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

Re: NoClassDefFoundError: org.apache.lucene.analysis.Analyzer

Posted By:   Amrun_Elisabeth  
Posted On:   Thursday, May 6, 2004 11:47 AM

if anyone is interested in: the classpath needs an ABSOLUTE path, then everything works find
About | Sitemap | Contact