Previous Topic Next topic Print topic


Installing Apache Tomcat

This section details the steps you take to install Apache Tomcat version 7.

Procedure
  1. Create a new folder on your computer (for example, C:\Tomcat (Windows) or ~/tomcat/ (UNIX)).
  2. Use your browser to navigate to the Apache Tomcat page: http://tomcat.apache.org/download-70.cgi. If the link fails for any reason, do a web search for "apache tomcat 7 download".
  3. Under "Download", select version 7.
  4. Navigate to the Binary Distributions - Core section and click on 32-bit Windows zip or 64-bit Windows zip depending on your OS (Windows), or zip or tar.gz (UNIX).
  5. Extract the distribution files into the folder created in step 1.
    Note: Ensure that the option to retain folder names is selected.
On UNIX and Linux platforms no further action is required at this stage, but on Windows you need to register the service. Do this by taking the following steps:
  1. Launch a command prompt (cmd.exe) with administrator privileges.
  2. Change to the bin folder of your Apache Tomcat installation (for example, C:\Tomcat\InstalledVersionPath\bin, where InstalledVersionPath is the folder name of the installed version from the zip file).
  3. Before you run the next command, you need to set either of these environment variables: JRE_HOME or JAVA_HOME. Micro Focus suggests that you set JRE_HOME, and ensure that it points to your Java Runtime Environment (JRE) folder. Typically, in a 32-bit system, the command is:
    set JRE_HOME=C:\Program Files (x86)\Java\jre7
    Note: Ensure that the file path is not enclosed in quotation marks.
  4. Register the service with the command:
    service.bat install
Previous Topic Next topic Print topic