Versions Compared

Key

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

...

    • If an entry for catalina.sh does not already exist in /etc/profile.d/catalina.sh then you will need to create one; sudo vi /etc/profile.d/catalina.sh
      In this this file put the following line:
           export $CATALINACATALINA_HOME=/opt/apache-tomcat/current
      If the file already exists be sure it has the above entry.
    • Once you open a new shell or login you will be able to test this configuration:
      echo $CATALINA_HOME should return /opt/apache-tomcat/<the directory you installed>

...

    • If an entry for java.sh does not already exist in /etc/profile.d/java.sh then you will need to create one;  sudo vi /etc/profile.d/java.sh
      In this file put the following line:
      export $JAVAJAVA_HOME=/opt/java/current
      If the file already exists be sure it has the above entry.
    • Once you open a new shell or login you will be able to test this configuration:
      echo $JAVA_HOME should return /opt/java/<the directory you installed>  -  and running java -version should return the version of Java you have installed.

...