From: John P. A. <joh...@gm...> - 2006-10-04 15:19:21
|
Folks, I've got a mixed client environment (Win, Mac, Linux) for an XTF project and thought I'd pass along an updated batch file for indexing on Windows since the one in the instructions was not quite right. The two principle problems were both with the 4th step 4) java -classpath [bunch_of_classpaths] This just doesn't work since there's nothing being supplied to the java command for compilation. From the context it looks like what was meant was the SET CLASSPATH command instead of java -classpath. Plus, not suprisingly that classpath has changed since the instructions were written (PDFBox was updated). I'm using this batch file successfully on WinXP with Java 1.5, both ActiveState and cywin Perl, and Tomcat. So the updated instructions would be 1) Install perl 2) Rename textIndexer to textIndexer.pl 3) Paste the code from below into indexer.bat 4) Set XTF_HOME (and JAVA_HOME if necessary) 5) Copy the sample files as directed 6) Run indexer.bat (realize that there's a pause at the end of the indexer that requires a keypress once the indexing is done) <code> REM Built for XTF 1.8-final REM Note that you may have to change some of the JAR filenames when the included library changes @echo off set OLD_CLASSPATH=%CLASSPATH% REM Change CONTAINER to your servlet container set CONTAINER=d:\java\apache-tomcat-5.5.20 echo Setting classpath using %CONTAINER% set CLASSPATH=%CLASSPATH%;%CONTAINER%\webapps\xtf\WEB-INF\lib\cql-java.jar;%CONTAINER%\webapps\xtf\WEB-INF\lib\log4j-1.2.9.jar;%CONTAINER%\webapps\xtf\WEB-INF\lib\PDFBox-0.7.2.jar;%CONTAINER%\webapps\xtf\WEB-INF\lib\saxonb-8.3.jar;%CONTAINER%\webapps\xtf\WEB-INF\lib\Tidy.jar;%CONTAINER%\webapps\xtf\WEB-INF\lib\xtf.jar echo Starting textIndexer perl script textIndexer.pl -index default echo Indexing complete echo Cleaning up set CLASSPATH=%OLD_CLASSPATH% echo Finished </code> -- John Paul Ashenfelter CTO/Transitionpoint (blog) http://www.ashenfelter.com (email) ash...@tr... |