How to install and configure Tomcat Server in Eclipse?

To Run any J2EE application(Servlet, JSP, etc.) in Eclipse, you need a Server. In this article, we will see how to download and configure Apache Tomcat Server in Eclipse IDE.

Software Dependency

  • Apache Tomcat-8.0.36
  • Eclipse IDE 2020-06
  • Windows 10

To install and configure Tomcat Server in Eclipse, we need to do the following steps:

1. Download Apache Tomcat

To download Apache Tomcat, visit Apache official website and download apache-tomcat-8.0.36-windows-x64.zip as below image:

apache-tomcat-8.0.36-windows-x64.zip preview

2. Extract downloaded zip

Once you download the zip file, extract it in a folder of your system. Here we are extracting it at C:\Program Files\Apache Software Foundation\Tomcat-8.0.36 folder as you can see in below image:

Tomcat-8.0.36 extracted folder

3. Open Eclipse IDE

Now open your Eclipse IDE and click on Window menu > Show View > Servers as you can follow the below image:

open servers

4. Add New Server

Once you click on Servers, you can see the below image now click on the link to add a new server.

add new server link

Now simply type tomcat and select Tomcat v8.0 Server and click Next as below image:

Define a new server

After that browse the extracted Tomcat-8.0.36 folder(C:\Program Files\Apache Software Foundation\Tomcat-8.0.36) and click on the Finish button as below image:

browse tomcat path

Now you can see Tomcat v8.0 Server successfully added to your eclipse IDE.

added server

If you want to configure your custom port for your server you can configure it by simply double click on the added server.

5. Configure Port and Start Server

By default Server port is 8080, you can change it as below image:

port configuration

After that to run the server, Right-click on the added server and click Start as below image:

start server

That’s it you have successfully configured the Tomcat server in Eclipse.

Hope you like it.

Share with friends

Leave a Comment

Your email address will not be published. Required fields are marked *