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