Installing Tomcat on Windows

Chad Darby
A free video tutorial from Chad Darby
Popular Java Spring Instructor - Best Seller
4.6 instructor rating • 8 courses • 353,274 students

Learn more from the full course

JSF 2.2 - Java Server Faces for Beginners - Build a DB App

JSF 2.2 - Build a Real JSF Web Application that connects to a Database - Most Popular JSF course

05:32:28 of on-demand video • Updated February 2020

  • Build a fully functioning JSF web application from scratch
  • Set up your JSF development environment with Tomcat and Eclipse
  • Read HTML form data with JSF
  • Apply HTML form validation with built-in JSF rules and custom rules
  • Integrate Managed Beans to handle business logic
  • Display data using tables
  • Add database support with JDBC: query, insert, update and delete
English Narrator: Hey, welcome back. So let's go ahead and get our hands dirty. So in this video, I'm gonna show you how to install Tomcat on Microsoft Windows. All right, so the first thing we need to do is we need to download Tomcat. So in my browser, I'm gonna visit tomcat.apache.org. And so this will take me to the Tomcat website. Over on the left hand side, as a Download section, where we can actually download some of the software. At the time of this recording, Tomcat eight is the most current version, however there may be a new version. Simply download that new version for your operating system. All right, so I've selected the link for Tomcat eight, I'm on the Tomcat eight downloads page now. I'll move down to the section for Binary Distributions and I'll choose this 32 bit, 64 bit Windows Service Installer. So this is a normal MSI file that'll install Tomcat as a Windows service. So I'll go ahead and select this link. And right now, my browser will start downloading it to my file system. All right great, so now we have it downloaded, let's go ahead and open up at Windows Explore and I'll move into this Downloads folder and there's the file that was just downloaded, apache-tomcat eight. So that's the actual installer. So let's go ahead and run this installer, just by double clicking it. So this will start up the installer. I'll hit Yes. And here, I'm at the first step of the Wizard. I'll go ahead and click Next. I'll agree, and then here we choose our components. For the components, I like to choose Full just so I can get all the examples and the host manager. Again, a nice thing about this Tomcat installer is that it installs it as a service. So I'll make sure that the service thing is enabled, or checked there. I'll go ahead and hit Next. By default, Tomcat listens on Port 8080, and feel free to change that but I like to keep the defaults. And then you can set up an Administrator Login. So for now, I'll just say admin, admin. Again, you can give any user name and password that you want. And then I'll hit Next. I'll accept the default installation here, for my JRE, I'm using Java eight. That's fine, I'll hit Next. And I'll also accept the default installation directory. You can feel free to change this, but I'll go ahead and keep the default installation directory for Tomcat. And then I'll hit Install. And so at this point, it'll go through the process of installing the software and now it says, hey the software's installed. I'll turn off the option to show the Readme. I'll hit Finish and now it'll actually start Tomcat as a Windows service. All right great, so Tomcat has started. Let's go ahead and verify our installation. And we can verify it by viewing a website, local host 8080. That's where our local Tomcat server is running right now. So if everything works out right, it should bring up this page that you see here. So it'll say Apache Tomcat, version eight and then also, they even give you a message, if you're seeing this, you've successfully installed Tomcat, congratulations. So we know that we're okay. So Tomcat was installed successfully. And Tomcat is up and running. So, good job so far. Now I'm gonna show you one other thing that you can do is, you can actually configure Tomcat. So you can just right click on the little Tomcat icon in the bottom right. And say right click and hit Configure. And this will bring up the Configuration Window for Tomcat. So you can change the display name for the service, you could change the actual description. Or at the bottom it shows you if the status, if it's running or stopped. You can play around with some Login stuff, a lot of other things you can play around with. But for right now, I'll just go ahead and keep everything as the defaults. And I'll just hit Cancel right now. Another nice thing is that you can actually administer Tomcat via the Services Control Panel. So I'll just go ahead and click on Services here, it'll bring it up and we'll see in the list, we have Apache Tomcat eight that's listed as a service and it's currently running. So just like any standard service, you can just right click, you can stop it, pause it, resume it, restart it. You can do all the normal things you can do with a service. What I'd like to do now is actually stop Tomcat because we're gonna run it later via Eclipse. So I'll go ahead and stop this service, I'll just do a right click, I'll hit Stop, and it'll go through the process of stopping the Tomcat server. So right now, it's not running. But don't worry, later on we'll actually hook up Tomcat and Eclipse to run together. And we'll cover that in one of the following videos. Now, we were successful, we were able to download Tomcat and install it and then also, go through the process of verifying our installation and then finally, we went around and took a look at some of the configs and also looked at the Services Control Panel. So, good job so far.