You may install
Apache-Tomcat Server 4.1.32 with
J2SE 1.4.2. The newer versions of both are available but, I haven't tested them yet.
If you already have j2SE installed, skip this part and proceed to
Section B
Section A: J2SE Installation
1) Download the
J2SE v 1.4.2_12 SDK package from sun's website. Here's the link
http://java.sun.com/j2se/1.4.2/download.html
Please select the "self-extracting file" under this section
Linux Platform - Java(TM) 2 SDK, Standard Edition 1.4.2_12 for download.
2) Make this
j2sdk-1_4_2_12-linux-i586.bin executable
Code:
chmod 0755 j2sdk-1_4_2_12-linux-i586.bin
3) Run this file
Code:
./j2sdk-1_4_2_12-linux-i586.bin
4) You will see some "Terms and Conditions" screen. Keep pressing ENTER till you are being asked to type "yes" or "no". Type "yes" and press ENTER.
5) A directory named
j2sdk1.4.2_12 will be created in the current working directory. Copy/Move this directory to your desired installation directory. I would prefer
/usr/local
Code:
mv j2sdk1.4.2_12 /usr/local/ -v
6) Add the path to /usr/local/j2sdk1.4.2_12/bin to your system's PATH variable
Code:
export PATH=$PATH:/usr/local/j2sdk1.4.2_12/bin
7) Now check if it's configured correcly. Try running java and javac
8) If you see some output other than "command not found", then you are done.
9) To make this PATH variable hold the path of the java executables, add the export command used above at the end of
/etc/profile file
Code:
export PATH=$PATH:/usr/local/j2sdk1.4.2_12/bin
Section B: Apache-Tomcat Installation
1) Download the Apache-Tomcat Server zip package. Here's this link
http://www.reverse.net/pub/apache/to...cat-4.1.32.zip
2) Unzip this package
Code:
unzip apache-tomcat-4.1.32.zip
3) A folder named
apache-tomcat-4.1.32 will be created in the current working directory. Move this folder to /usr/local/
Code:
mv apache-tomcat-4.1.32 /usr/local/ -v
4) Make the files of this folder executable
Code:
chmod -cR 755 /usr/local/apache-tomcat-4.1.32/*
5) Set JAVA_HOME variable to point to the J2SE directory.
Code:
export JAVA_HOME=/usr/local/j2sdk1.4.2_12
6) Set CATALINA_HOME variable to point to the Tomcat directory
Code:
export CATALINA_HOME=/usr/local/apache-tomcat-4.1.32
7) Add these lines to the file /etc/profile
Code:
export JAVA_HOME=/usr/local/j2sdk1.4.2_12
export CATALINA_HOME=/usr/local/apache-tomcat-4.1.32
8) To start Tomcat, run this command
Code:
/usr/local/apache-tomcat-4.1.32/bin/startup.sh
10) To stop Tomcat, run this command
Code:
/usr/local/apache-tomcat-4.1.32/bin/shutdown.sh