...
Step 3: Set up necessary environment variables
There are two main reasons why we need to set up environment variables for Java:
- Ensure that the Sun JDK executables are used instead of the GCJ executables
- 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 |
Step 4: Download and install Apache Tomcat 5.5.x
...