Tomcat Install

On Windows systems, download the 32-bit/64-bit Windows Service Installer from the following address:

Tomcat8.5 download

You can get a newer version from the following address:

Note that I have tested the servlet and jsp examples on Tomcat 8.5.x version.

Double-click the downloaded file to start the installation.

Determine the Tomcat port during installation. Tomcat's default port is 8080. If another program already uses the 8080 port, you need to change the Tomcat port. You can change Tomcat's port number after installation by editing the server.xml file in CATALINA_HOME/conf directory.

CATALINA_HOME represents the root directory of your Tomcat installation. On Windows systems, the full path to CATALINA_HOME is approximate C:\Program Files\Apache Software Foundation\Tomcat <version>.

When you set the Tomcat port to 8080 and visit http://localhost:8080, If you see the following message:
Authentication Required Server http:/localhost:8080 requires a user name and a password. The server says XDB.
It is Oracle XDB, not Tomcat, that works with 8080. In this case, you need to change port 8080 to a different number in the CATALINA_HOME/conf/server.xml like below.

Previous
<Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />	
Updated
<Connector port="9090" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />	

Set the Tomcat administrator username and password during installation. You can change these after installation by editing the tomcat-users.xml in CATALINA_HOME/conf directory.

Visit http://localhost:8080. If you see a cat, installation is a success. The screen showing the cat is the homepage of Tomcat's ROOT application. The location of the ROOT application is CATALINA_HOME/webapps/ROOT.

When Tomcat starts the service, the Tomcat Monitor icon appears in the system tray menu. If you have not seen the cat, try restarting Tomcat using this Tomcat Monitor.