Tomcat 5.5からはTomcat自身にIBMが無償で提供しているJavaのJDT(Java Development Tools)コンパイラが内蔵されています。このためTomcat 5.5以降のバージョンでは、JREだけでもJSPのコンパイルを行うことが可能
ここからJRE(jre-1_5_0_13-linux-i586.bin)をDownlaod.
$ cd /usr/local $ su # mkdir java # cd java # chmod u+x /usr/local/src/jre-1_5_0_13-linux-i586.bin Sun Microsystems, Inc. Binary Code License Agreement for the JAVA 2 PLATFORM STANDARD EDITION RUNTIME ENVIRONMENT 5.0 SUN MICROSYSTEMS, INC. ("SUN") IS WILLING TO LICENSE THE SOFTWARE IDENTIFIED BELOW TO YOU ONLY UPON THE CONDITION THAT YOU ACCEPT ALL OF THE TERMS CONTAINED IN THIS BINARY CODE LICENSE AGREEMENT AND SUPPLEMENTAL LICENSE TERMS un grants you a non-exclusive, non-transferable, limited license without license fees to reproduce and use internally (略) Do you agree to the above license terms? [yes or no] yes Unpacking... Checksumming... (略) Creating jre1.5.0_13/lib/javaws.jar Creating jre1.5.0_13/lib/deploy.jar Done.
ここからapache-tomcat-5.5.25.tar.gzをDownlaod
$ cd /usr/local/src $ tar zxvf apache-tomcat-5.5.25.tar.gz $ cd /usr/local $ su # mv /usr/local/src/apache-tomcat-5.5.25 . # ln -s apache-tomcat-5.5.25 tomcat
環境変数として .bash_profileに以下を追加
export JRE_HOME=/usr/local/java/jre1.5.0_13 export CATALINA_HOME=/usr/local/tomcat
# CATALINA_HOME=/usr/local/tomcat # export JRE_HOME=/usr/local/java/jre1.5.0_13 # $CATALINA_HOME/bin/startup.sh Using CATALINA_BASE: /usr/local/tomcat Using CATALINA_HOME: /usr/local/tomcat Using CATALINA_TMPDIR: /usr/local/tomcat/temp Using JRE_HOME: /usr/local/java/jre1.5.0_13
起動確認は
http://(sever):8080/
にアクセスしてTomcatのページが開いたらOK