Install Tomcat on Mac

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

Learn more from the full course

JSP, Servlets and JDBC for Beginners: Build a Database App

JSP: Covers JSP 2.3 and Servlets 3.1 - Most Popular JSP/Servlet course

08:39:14 of on-demand video • Updated February 2021

  • Build a fully functioning JSP and Servlets web application from scratch
  • Set up your JSP/Servlet development environment with Tomcat and Eclipse
  • Explore JSP scripting elements: Expressions, Scriptlets and Declarations
  • Read HTML form data with JSP and Servlets
  • Manage application state with Sessions to track unique user actions
  • Leverage Cookies to personalize a web site for a specific user
  • Integrate the JSP Standard Tag Library (JSTL) to minimize scriptlet code
  • Build a Multi-Lingual app using Internationalization and JSTL
  • Build an MVC application with JSP and Servlets
  • Generate HTML Tables with JSP and Servlets
  • Add database support with JDBC: query, insert, update and delete
  • Build a complete database web app with JDBC
English -: In this video, I'm going to show you how to install Tomcat on the Mac operating system. Now, there's one thing I want to talk about first and that's regarding the Tomcat version. A new version of Tomcat 10 was released to support Jakarta EE 9. And this happened around the February 2021 timeframe. In this release, they renamed the packages javax.* to jakarta.* And this is a breaking change for Java EE apps. In this course, we're going to use Tomcat 9 for our Java EE - JSP/Servlet apps. In the following videos, be sure to install Tomcat 9. All right, so what we need to do is open up a web browser and visit the Tomcat website. So, I need to go to So, this will bring me to the main Apache Tomcat website. This is where we can actually download the software. So, over on the left hand side, there's a download section and it has the different versions of Tomcat that we can download. And I'll move down to the Binary Distributions. That means this is the binary code or whatever. Since I'm doing this for a Mac, I'll go ahead and choose tar.gz. So, it's simply a ZIP file that preserves the file permissions. And I'll select the link here. And so this will actually download the Tomcat file to my local computer. All right, great. So, we've actually downloaded the file to our file system. So, let me go ahead and open up my finder. Let me move into the downloads directory. And this is where I'll find the actual file that was just downloaded. Now what I need to do is actually unzip the file. All right. So now I have the file extracted, I actually want to verify that Tomcat installation by actually running the server. So, what I'll do is I'll open up a terminal window here. And what I'd like to do is actually move into that Tomcat installation directory. All right, great. So I'm in the directory. Now just do an LS just to see the contents of this file. I'm sorry, the contents of this directory. And we'll see that this directory has a All right, so this is in the bin directory, This is what I'll use to actually start the Tomcat server. So we can see some logs. And then we'll see in the bottom left, Tomcat started. So this is really good. So our servers installed and we've also started the server. So at this point, Tomcat is up and running, and it's listening for a request. All right, great. So now that our servers running, then we can we can actually access our server. So, in my browser, I can simply type: localhost:8080, and this will connect to my Tomcat server. By default, Tomcat is listening on port 8080, and that's how we connect to it. So, here we make it to a page, Tomcat with the version number, and then they'll even tell you, "Hey, if you're seeing this page, you've successfully installed Tomcat." So we're in really good shape here. So we downloaded the server, we installed it, and we also started the server. And then we access it via our web browser. So a lot of things are looking really good for us. So, good job so far. And one final thing we want to do is actually stop the server, or shut down the server. Because later on, we're going to use it via Eclipse. Now we'll actually stop the Tomcat server, but don't worry. Once we install Eclipse, then we'll actually run Tomcat from the Eclipse server. All right. So, we did a lot of good things in this video. So, I showed you how to install the Tomcat server on the Mac operating system. We went through the process to actually start the server, and also access the server, and then finally how to stop the server. So, we're in good books now that we have successfully installed Tomcat.