BreadcrumbsHome / JSP Tutorial #6 – Java Server Pages Tutorial – Connecting Eclipse to Tomcat
JSP Tutorial #6 – Java Server Pages Tutorial – Connecting Eclipse to Tomcat
Last Updated on Thursday, 10 December 2015 Written by Chad Darby Saturday, 7 November 2015
In this video, I show you how to connect Eclipse to Tomcat.
Please SUBSCRIBE to my YouTube channel.
Do You Need More Details?
- How to read form data with JSP?
- Develop MVC application with JSP and Servlets?
Read more about the premium course at http://www.luv2code.com/jsp
Follow luv2code with the links below:
JSP Tutorial Transcript:
Hey, welcome back. In this video I’m going to show you how to connect Eclipse and Tomcat. The main benefit is that we can start Tomcat from Eclipse. Also, it’ll make it very easy for us to deploy our web applications directly to Tomcat. All right, so let’s go ahead and move into Eclipse. What I’d like to do is move down to the bottom section, there’s a tab called servers, I’d like to click on that tab. At this point, we don’t have any servers associated with our Eclipse environment at the time, so what we need to do is click on this link and we’re going to add a new server. We’re going to add a new server that points to our Tomcat that we installed previously. All right, so here’s the defined new server. What I need to do is move up to the Apache Tomcat folder and expand it.
I basically need to scroll down through this list and find Tomcat 8.0, because that’s the one that we installed earlier. All right, so I have Tomcat 8 selected. This looks really good so far. What I’d like to do is go ahead and click the next button here on the screen, and then at this point I need to browse and tell Eclipse where Tomcat is installed. All right, so wherever you have Tomcat installed, you need to point to that directory. I’m going to make use of the default directory where Tomcat is installed. It’s under program files, Apache Software, Tomcat 8. This is the actual default directory where Tomcat was installed. All right, great, so once I have that selected I’ll go ahead and click on okay. It should give us the full path there for the Tomcat installation directory.
Again, I’m just using the default. Once I’m happy with this, I’ll go ahead and click on next. This screen here just talks about some other apps, don’t worry about it, just go ahead and click on finish. This will associate Tomcat with the Eclipse environment. If everything is successful down in the bottom center, you should see a reference for Tomcat 8. At this point it’s stopped, we haven’t started it yet. We’ll actually start it in some of the following videos when we start creating our web applications. Okay great, so if your Eclipse screen looks similar to this, that means you’re successful in setting up Tomcat within Eclipse. Good job. All right, so let’s go ahead and wrap up the video.
In this video I showed you how to connect Eclipse and Tomcat.