转自http://www.blogjava.net/qixiangnj/archive/2006/08/05/61954.html
d:
cd D:/heritrix- 1.8.0 /bin
title Heritrix
set HERITRIX_HOME = D:/heritrix- 1.8.0
cd D:/heritrix- 1.8.0
set classpath = D:/heritrix- 1.8.0 /heritrix- 1.8.0 .jar ; D:/heritrix-1.8.0/lib/ant-1.6.2.jar;D:/heritrix-1.8.0/lib/backport-util-concurrent-2.0_01.jar;D:/heritrix-1.8.0/lib/colt-subset-1.2.0.kb.jar;D:/heritrix-1.8.0/lib/commons-cli-1.0.jar;D:/heritrix-1.8.0/lib/commons-codec-1.3.jar;D:/heritrix-1.8.0/lib/commons-collections-3.1.jar;D:/heritrix-1.8.0/lib/commons-httpclient-3.0-rc3.jar;D:/heritrix-1.8.0/lib/commons-logging-1.0.4.jar;D:/heritrix-1.8.0/lib/commons-pool-1.3.jar;D:/heritrix-1.8.0/lib/dnsjava-1.6.2.jar;D:/heritrix-1.8.0/lib/dsi.unimi.it-1.2.0.jar;D:/heritrix-1.8.0/lib/itext-1.2.0.jar;D:/heritrix-1.8.0/lib/j5compat-0.1.0.jar;D:/heritrix-1.8.0/lib/jasper-compiler-tomcat-4.1.30.jar;D:/heritrix-1.8.0/lib/jasper-runtime-tomcat-4.1.30.jar;D:/heritrix-1.8.0/lib/javaswf-CVS-SNAPSHOT-1.jar;D:/heritrix-1.8.0/lib/je-2.1.30.jar;D:/heritrix-1.8.0/lib/jetty-4.2.23.jar;D:/heritrix-1.8.0/lib/jmxri-1.2.1.jar;D:/heritrix-1.8.0/lib/jmxtools-1.2.1.jar;D:/heritrix-1.8.0/lib/junit-3.8.1.jar;D:/heritrix-1.8.0/lib/libidn-0.5.9.jar;D:/heritrix-1.8.0/lib/MirrorJNDI-1.0.jar;D:/heritrix-1.8.0/lib/poi-2.0-RC1-20031102.jar;D:/heritrix-1.8.0/lib/poi-scratchpad-2.0-RC1-20031102.jar;D:/heritrix-1.8.0/lib/servlet-tomcat-4.1.30.jar
java -Xmx512m org.archive.crawler.Heritrix --port = 9090 --admin = admin: 123456
d:
cd D:/heritrix- 1.8.0 /bin
title Heritrix
set HERITRIX_HOME = D:/heritrix- 1.8.0
cd D:/heritrix- 1.8.0
set classpath = D:/heritrix- 1.8.0 /heritrix- 1.8.0 .jar ; D:/heritrix-1.8.0/lib/ant-1.6.2.jar;D:/heritrix-1.8.0/lib/backport-util-concurrent-2.0_01.jar;D:/heritrix-1.8.0/lib/colt-subset-1.2.0.kb.jar;D:/heritrix-1.8.0/lib/commons-cli-1.0.jar;D:/heritrix-1.8.0/lib/commons-codec-1.3.jar;D:/heritrix-1.8.0/lib/commons-collections-3.1.jar;D:/heritrix-1.8.0/lib/commons-httpclient-3.0-rc3.jar;D:/heritrix-1.8.0/lib/commons-logging-1.0.4.jar;D:/heritrix-1.8.0/lib/commons-pool-1.3.jar;D:/heritrix-1.8.0/lib/dnsjava-1.6.2.jar;D:/heritrix-1.8.0/lib/dsi.unimi.it-1.2.0.jar;D:/heritrix-1.8.0/lib/itext-1.2.0.jar;D:/heritrix-1.8.0/lib/j5compat-0.1.0.jar;D:/heritrix-1.8.0/lib/jasper-compiler-tomcat-4.1.30.jar;D:/heritrix-1.8.0/lib/jasper-runtime-tomcat-4.1.30.jar;D:/heritrix-1.8.0/lib/javaswf-CVS-SNAPSHOT-1.jar;D:/heritrix-1.8.0/lib/je-2.1.30.jar;D:/heritrix-1.8.0/lib/jetty-4.2.23.jar;D:/heritrix-1.8.0/lib/jmxri-1.2.1.jar;D:/heritrix-1.8.0/lib/jmxtools-1.2.1.jar;D:/heritrix-1.8.0/lib/junit-3.8.1.jar;D:/heritrix-1.8.0/lib/libidn-0.5.9.jar;D:/heritrix-1.8.0/lib/MirrorJNDI-1.0.jar;D:/heritrix-1.8.0/lib/poi-2.0-RC1-20031102.jar;D:/heritrix-1.8.0/lib/poi-scratchpad-2.0-RC1-20031102.jar;D:/heritrix-1.8.0/lib/servlet-tomcat-4.1.30.jar
java -Xmx512m org.archive.crawler.Heritrix --port = 9090 --admin = admin: 123456
运行上述脚本,访问 http://localhost:9090/,输入用户名和密码,即可进入Heritrix管理页面。