JSP Tutorial #4 – Java Server Pages Tutorial – Installing Tomcat on MS Windows

In this video, I show you how to install Tomcat on MS Windows.

Please SUBSCRIBE to my YouTube channel.

 


 

# Video
1 Introduction
2 JSP Overview
3 Setting up your Development Environment - Overview
4 Installing Tomcat
5 Installing Eclipse
6 Connecting Eclipse to Tomcat
7 JSP Hello World
8 JSP Expressions
9 JSP Scriptlets
10 JSP Declarations
11 Importing Java Classes
12 JSP Built-In Objects
13 Including Files

Do You Need More Details?

  • How to read form data with JSP?
  • How to use cookies and sessions?
  • Develop MVC application with JSP and Servlets?
I have a premium course that shows you how to complete all of these tasks.

Read more about the premium course at http://www.luv2code.com/jsp

Follow luv2code with the links below:

– Website: http://www.luv2code.com
– YouTube: http://goo.gl/EV6Kwv
– Twitter: http://goo.gl/ALMzLG
– Facebook: http://goo.gl/8pDRdA

JSP Tutorial Transcript:

Hey, welcome back. Let’s go ahead and get our hands dirty. In this video I’m going to show you how to install Tomcat on Microsoft Windows.

The first thing we need to do is we need to download Tomcat. In my browser, I’m going to visit tomcat.apache.org. This will take me to the Tomcat website. Over on the left hand side there’s a download section where we can actually download some of the software. At the time of this recording, Tomcat 8 is the most current version, however, there may be a new version, simply download that new version for your operating system.

I’ll select the link for Tomcat 8, I’m on the Tomcat 8 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. This is the normal MSI file. It’ll install Tomcat as a Window service. I’ll go ahead and select this link and right now my browser will start downloading it to my file system.

Great, so now we have it downloaded. Let’s go ahead and open up our Windows Explorer. I’ll move into this downloads folder and there’s the file that was just downloaded, Apache Tomcat 8. That’s the actual installer. Let’s go ahead and run this installer just by double clicking it. This will start the installer. I’ll hit yes and here I’m at the first step of the wizard. I’ll 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 of 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 80 80, feel free to change that. I like to keep the defaults. Then you can set up an administrator log in. For now, just say admin admin. Again, you can give any user name and password that you want. Then I’ll hit next. I’ll accept the default installation here for my JRE. I’m using Java 8 and that’s fine. I’ll hit next. 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. Then I’ll hit install.

At this point, I’m going to go through the process of installing the software. Now it says the software is installed. I’ll turn off the option to show the Read Me. I’ll hit finish and now it’ll actually start Tomcat as a Windows service.

Great, so Tomcat is started. Let’s go ahead and verify our installation. We can verify it by viewing a website localhost8080. That’s where our local Tomcat server is running right now. If everything works out right, it should bring up this page that you see here. It’ll say Apache Tomcat, version 8, 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. Tomcat was installed successfully and Tomcat is up and running. Good job so far.

Now I’m going to show you one other thing you can do. You can actually configure Tomcat. You can just right click on the little Tomcat icon in the bottom right and say right click and hit configure. This will bring up the configuration window for Tomcat so you can change the display name for the service, you can change the actual description. At the bottom is shows you the status if it’s running or stopped. You can play around with some logging stuff. A lot of other things you can play around with but for right now, just keep everything as defaults. I’ll just hit cancel right now.

Another nice thing is that you can actually administer Tomcat via the services control panel. I’ll go ahead and click on services here, it’ll bring it up, and we’ll see on the list we have Apache Tomcat 8 that’s listed as a service and it’s currently running. Just like any standard service, you can just right click, you can stop it, pause it, resume it, restart it. You can do all of the normal things you can do with a service.

What I’d like to do now is actually stop Tomcat because we’re going to run it later via Eclipse. I’ll go ahead and stop this service. I’ll do a right click. I’ll hit stop and it will go through the process of stopping the Tomcat server. Right now it’s not running but don’t worry, later on we’ll actually hook up Tomcat and Eclipse to run together. 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. Finally, we went around and took a look at some of the configs and also looked at the services control panel. Good job so far.

Did you like my blog post?

Signup now and receive an email when I publish new luv2code content.

I will never give away, trade or sell your email address. You can unsubscribe at any time.

Share

Leave a Reply