Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add Tomcat Server in eclipse

I just installed Java EE plugin in plain eclipse and I am trying to add tomcat server. I opened add new server which showing "Choose the type of server to create" but there is no server list. How can I add tomcat server?

Eclipse: Indigo.

like image 205
Anoop Avatar asked Nov 08 '11 06:11

Anoop


People also ask

How do I import Tomcat into Eclipse?

Open Window -> Preferences -> Server -> Installed Runtimes to create a Tomcat installed runtime. Click on Add... to open the New Server Runtime dialog, then select your runtime under Apache (Apache Tomcat v5.

How do I download and configure Apache Tomcat server in Eclipse IDE?

For configuring the tomcat server in eclipse IDE, click on servers tab at the bottom side of the IDE -> right click on blank area -> New -> Servers -> choose tomcat then its version -> next -> click on Browse button -> select the apache tomcat root folder previous to bin -> next -> addAll -> Finish.


3 Answers

Do as this:

Windows -> Show View -> Servers

Then in the Servers view, right-click and add new. It will show a pop up containing many server vendors. Under Apache select Tomcat v7.0 (Depending upon your downloaded server version). And in the run time configuration point it to the Tomcat folder you have downloaded.

You can try this article. It has the info you want !!

like image 159
Ghost-Man Avatar answered Oct 08 '22 23:10

Ghost-Man


If you have the Standard Eclipse installed (instead of the JavaEE version), then you'll need to install the JavaEE web developer tools.

You can drag and drop the Install button from here: https://marketplace.eclipse.org/content/eclipse-enterprise-java-and-web-developer-tools

Or you can go to Help > Install New Software then select the Eclipse site from the dropdown (Helios, Kepler depending upon your revision). Then select the option that shows Java EE. Restart Eclipse and you should see the Server list, such as Apache, Oracle, IBM etc.

like image 36
MG Developer Avatar answered Oct 09 '22 01:10

MG Developer


  1. Go to Server tab enter image description here

  2. Click on No servers are available. Click this link to create a new server.

  3. Select Tomcat V8.0 from server type list: enter image description here

  4. Provide path of server: enter image description here

  5. Click Finish.

  6. You will see server added: enter image description here

  7. Right click->Start

Now you can run your web applications on server.

like image 8
Shiv Buyya Avatar answered Oct 09 '22 01:10

Shiv Buyya