CCL Home Page
Up Directory CCL t023.html
slide

Jan K. Labanowski: "Tomcat, servlets, JSPs and other friends"

Tomcat Installation -- Start from Java

Before you can work with Tomcat, you have to install J2SDK. You can do it by visiting Sun Microsystems JavaSoft JTSDK 1.4 site: http://java.sun.com/j2se/1.4/download.html. You need to take SDK (not JRE) for your respective OS. For Linux, I take usually tar distribution (I have many versions of Java for testing compatibility, and it gives me a total freedom to put it in whateever directory I want). But for this talk I tried RPM distro. I placed the file in /usr/local/java-rpm directory and:
cd /usr/local/java-rpm
chmod 755 j2sdk-1_4_0-rc-linux-i386-rpm.bin
./j2sdk-1_4_0-rc-linux-i386-rpm.bin
rpm -Uhv j2sdk-1_4_0-rc-linux-i386.rpm
It puts your Java distribution under /usr/java/j2sdk1.4.0. You need to add the following to your .profile or .bashrc file:
JAVA_HOME=/usr/java/j2sdk1.4.0
export JAVA_HOME
PATH=${PATH}:${JAVA_HOME}/bin
export PATH

Modified: Wed Feb 13 20:23:37 2002 GMT
Page accessed 2597 times since Mon Feb 3 15:33:50 2003 GMT