Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Step 3: Set up necessary environment variables

There are two main reasons why we need to set up environment variables for Java:

  1. Ensure that the Sun JDK executables are used instead of the GCJ executables
  2. Many Java applications like Apache Tomcat and Ant rely upon standard environment variables for locating the installed package

To set up environment variables for all users, we will edit /etc/profile which affects all users.  Open your favorite text or line editor (shameless plug for vim) and add the following block at the top of the file:

Panel

export JAVA_HOME=/usr/java/latest
export JRE_HOME=/usr/java/latest/jre
export ANT_HOME=/usr/local/ant
export CATALINA_HOME=/usr/local/tomcat
export PATH=$JAVA_HOME/bin:$ANT_HOME/bin:$PATH

Step 4: Download and install Apache Tomcat 5.5.x

...