Steps Involved:
- Install JDK
- Download and install JDK RPM from Sun
- log in as root
- execute shell script to unpack binary RPM: ./jdk-1_5_0_06-linux-i586.rpm.bin
- now you have an RPM you can install. You can either click on it in Konqueror or execute the following command: rpm -ivh jdk-1_5_0_06-linux-i586.rpm
- Download Other Software.
- Download Tomcat from Apache website.
- Download Tomcat Admin webapp from same site.
- Download ANT from Apache website.
- Download eclipse WTP all in one bundle
- Unpack Software. I unpack ant, tomcat, and eclipse into '/usr/java', where sun unzips the JDK.
- chmod 777 /usr/java -R
- unzip apache-tomcat-5.5.15.zip -d /usr/java
- unzip apache-tomcat-5.5.15-admin.zip -d /usr/java
- unzip apache-ant-1.6.5-bin.zip -d /usr/java
- eclipse - enter these commands in sequence (is there a way to do this with one command?)
- tar xfv wtp-all-in-one-sdk-1.0-linux-gtk.tar.gz
- mv eclipse /usr/java/eclipse
- Set Environment Variables. I like to edit /etc/bash.bashrc.local to set these.
- export JAVA_HOME=/usr/java/jdk1.5.0_06
- export JRE_HOME=$JAVA_HOME/jre
- export CATALINA_HOME=/usr/java/apache-tomcat-5.5.17
- export ANT_HOME=/usr/java/apache-ant-1.6.5
- export ECLIPSE_HOME=/usr/java/eclipse
- export PATH=$JAVA_HOME/bin:$PATH:$ANT_HOME/bin:$ECLIPSE_HOME/
- Test everything by typing the following commands in a new terminal:
- ant
- javac -version
- eclipse
- Setup tomcat for WTP use:
- Edit tomcat-users.xml. Add a username in the manager and admin role.
- Run:
- cd $CATALINA_HOME/bin/
- ./startup.sh
- Log into http://localhost:8080/manager/html to confirm there are no startup errors.