1.
/etc/apt/sources.list 加入jdk deb package的來源
deb ftp://ftp.nsysu.edu.tw/pub/Linux/metala ... rg/debian/ woody main non-free
2.
apt-get update
apt-get install j2sdk1.3 tomcat4 tomcat4-webapp jikes
3.
因為用到jikes 來compiler
設定jikes為compiler如下
/etc/default/tomcat4 加入
CATALINA_OPTS="-Djava.awt.headless=true -Dbuild.compiler.emacs=true"
/etc/tomcat4/web.xml 在設compiler附近加入
<init-param>
<param-name>jspCompilerPlugin</param-name> <param-value>org.apache.jasper.compiler.JikesJavaCompiler</param-value>
</init-param>
修改/usr/share/tomcat4/bin/catalina.sh 內之CLASSPATH
CLASSPATH="$CLASSPATH":"$JAVA_HOME"/jre/lib/rt.jar:"$CATALINA_HOME"/bin/bootstrap.jar
/etc/profile 記得加入
export JAVA_HOME=/usr/lib/j2se/1.3/
export JIKESPATH=.:/usr/lib/j2se/1.3/jre/lib/rt.jar
source /etc/profile
/etc/init.d/tomcat4 restart
lynx http://localhost:8180/
大致上就是這樣