How to Install Tomcat on Windows 7
Part 1 of 4:
Downloading the Tomcat Installer
- Access the Tomcat Download page. Open a new browser tab or window and enter 'Apache Tomcat 7 download' in the address bar. Hit the Enter key to view the search results. Select the first link in the results from the official Apache Tomcat page.
- Tomcat 7 is the latest version, though you can select earlier versions from the left menu panel on the download page.
- Download the installer zip file. Go down the page to find the 'Binary distribution' folder under the '7.0.62' heading. In the folder, locate 'Binary Distribution/Core' heading and click the 'Zip' link to download the installer. #* The unitary file size of the zip package is around 8MB.
- Unzip the installer. Go to the 'Download' folder of your computer and unzip the file with WinZip or WinRAR, or whatever unzipping program you have. Avoid unzipping the folder to the desktop, as you will find the path of the software files hard to locate later. The best option will be to unzip to 'E:myserver.' The unzipped directory will be 'E:myservertomcat-.0.62.'
Part 2 of 4:
Installing Tomcat
- Check the installation directory. Check the installed directory to ensure it contains all the sub folders (bin, logs, webapps, work, temp, conf, and lib). These are the required subfolders for installing the server. If any of the folder is missing, download the zip file again.
- Create JAVA_HOME. After checking the directory, you should create an environment variable called 'JAVA_HOME.' To do this, go to Start >> Control Panel >> System >> Advanced System Settings. After reaching it, click the 'Advanced' tab, then click Environment Variables >> System Variables.
- Select the 'New' button in the System Variables menu. In the 'Variable name' field, enter 'JAVA_HOME.' Enter 'c:Program FilesJavajdk1.7.0_{xx}' in the 'Variable value' field. (Variable value is nothing but the JDK directory, you can always find this in program files.)
- Ensure its workability. To make sure that it's working correctly, start a command shell and issue: set JAVA_HOME. To open the command shell, click the 'Start' button and then 'All Programs'. Type the following in the command prompt, 'set JAVA_HOME = C:Program FilesJavajdk1.6.0_06' and press enter. The JAVA_HOME is set. Type the following in the command prompt, 'set JAVA_HOME = C:Program FilesJavajdk1.6.0_06' and press enter. The JAVA_HOME is set.
- Create JRE_HOME. At times, you may need to set JRE_HOME instead of JAVA_HOME, like errors when using Java. If this is the case, JRE should be used. Create JRE_HOME the same way you created Java, but remember that the JRE installed directory will be different (C:Program FilesJavajre7).
Part 3 of 4:
Configuring Tomcat
- Locate the configuration files. Locate the four configuration XML files of Tomcat in the 'conf' sub-directory of the Tomcat directory (E:myservertomcat7.0.40conf). The four files should be context.xml, tomcat-users.xml, server.xml, and web.xml file.
- Create a backup. Before proceeding, make a backup of the configuration files. Because of file permissions with your backup/restore, you don't want to restore the server with different file permissions than what was there originally.
- To do this, go to Internet router >> Prompt, issue the Enable command by entering 'Enable,' and provide the required password when prompted. A page will be displayed with your router settings. Entering 'Enable' will change the prompt to Router#, which indicates that the router is now in privileged mode. Copy the running configuration file to the TFTP server.
- Afterwards, open the configuration file with a text editor, like Textpad or Notepad. Search for and remove any line that starts with 'AAA.' Copy the configuration file from the TFTP server to a new router in privileged (enable) mode, which has a basic configuration.
- Enable directory listing. Open the configuration file 'web.xml' in a text editor, and change the directory listing by changing 'listings' from 'false' to 'true' for the 'default' servlet.
- Set the TCP Port Number. Open the configuration file 'server.xml' in a text editor. The default port number of Tomcat is 8080. Now you need to change this, since the same port number can be used by other servers like SQL Server. You may choose any number between 1024 and 65535.
- Enable automatic reload. Open the configuration file 'context.xml' in a text editor. Here, set reloadable='true' to the element to enable automatic reload after the code changes.
Part 4 of 4:
Starting Tomcat
- Run the startup. Launch the command prompt in Windows 7. Once launched, set the current directory to 'bin'. For example, E:myservertomcat7.0.40bin, and run 'startup.bat'.
- When you first start the command prompt, you will be located in your personal directory. This is typically C:Usersusername. With the basic navigation commands, you can set the directory as specified in the above step.
- Start the server. This will direct you to a new console window of the server. Read the messages that appear on the console. Look out for the Tomcat's port number and double-check.
- Access Tomcat. Open any web browser on your Windows and then enter the URL 'http://localhost:9999'. This will direct you to the Tomcat server's welcome page. Once you are directed to the server page, you are almost done. Now try the URL 'http://localhost:9999/examples' to view JSP and servlet examples.
- Close Tomcat when you're done. To do this, press Ctrl + C in the Tomcat console.

5 ★ | 1 Vote
You should read it
- How to install Active Directory on Windows Server 2019
- Theory - What is Active Directory?
- How to fix 'The File or Directory is Corrupted and Unreadable' error
- Deploy Domain System On Windows Server 2003 Active Directory
- Restore deleted components in Active Directory
- Manage files and folders in Python
- Instructions for installing Active Directory on Windows Server 2008
- Configure the Lightweight Directory Service service - Part 3
May be interested
- Instructions for installing Windows 8.1 on Macpreviously we showed you how to install windows 8 on a mac. however, with windows 8.1 is about to be released by microsoft on october 17, what to do? some of the following tips will help you easily install windows 8.1 on a mac computer.
- Instructions on how to create USB install Windows 10to install windows 10 we can create usb with windows 10 installation with extremely simple and quick steps.
- Things you need to know about how to install Windows todayto install new win, we will have many other ways such as installing from cd / dvd, from usb, hard drive, ... so do you know how to install win has advantages and characteristics?
- Instructions to install Windows by USB, create USB boot, USB install Windowscreating usb boot, usb install windows is very necessary when your computer does not have a damaged cd / dvd drive or dvd drive is unusable. all you need is a 4gb usb and windows installation iso file ...
- Install Windows 8 on the new partitionhere's how to download and install windows 8 developer preview build on a new partition on the hard drive.
- Free tool to help you install Windows 11 without TPM, bypassing hardware requirementswindows 11 has some pretty strict requirements for security as well as minimal hardware. to install the new microsoft operating system, your computer must have tpm 2.0, secure boot and the cpu must be officially supported from microsoft.
- 8 ways to fix the problem of not being able to install Firefox on Windowssome windows users find it difficult to install firefox. when trying to install, they get the following error message: hmm. for some reason, we could not install firefox. choose ok to start over.
- Install Win 7 from your hard drive, no need for USB, install Win diskinstalling win 7 from your hard drive is a way to install the operating system directly on your hard drive without a usb drive or a win drive. useful when you do not know how to create a usb drive to install win or drive failure, usb connection port.
- How to install Microsoft NET Framework 4.5 full for Windows 7, 8 with Windows Updatein the article below, tipsmake.com will guide you on the necessary steps to install net framework 4.5 on windows 7 platform. technically, there are many ways to install the .net framework platform on the operating system. windows such as downloading offline files, installing via windows features ...
- How to Install Windows 8.1this wikihow teaches you how to install windows 8.1 on your pc. if you're currently using windows 8, you'll just need to run some quick updates to get 8.1. if you just want to install windows 8.1 over a different windows version (from...