Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No server in Eclipse; trying to install Tomcat

Tags:

eclipse

I'm trying to install Tomcat in Eclipse but I can't get a server tab to show up. When I go to Window -> Show View -> Other and type in "server", I don't get any results.

When I go to File -> New -> Other and type 'server' I also get nothing.

Does anyone know what happened to my servers and where I can find them? (I've never used Eclipse with servers before).

like image 413
CodyBugstein Avatar asked Oct 23 '12 21:10

CodyBugstein


People also ask

Why there is no server option in Eclipse?

To fix this go: help>install new software. in work with : select : "Indigo Update Site - http://download.eclipse.org/releases/indigo/" , once selected, all available software will be displayed in the section under type filter text. Expand “Web, XML, and Java EE Development” and select "JST Server adapters extensions"

Where is the server option in Eclipse?

In the Java EE perspective of Eclipse, you will find the Servers tab at the bottom.

How do I import Tomcat into Eclipse?

Start the Eclipse WTP workbench. 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. 0 in this example):


12 Answers

Try to install JST Server Adapters and JST Server Adapters Extentions. I am running Eclipse 4.4.2 Luna and it worked.

Here are the steps I followed:

  1. Help -> Install New Software

  2. Choose "Luna - http://download.eclipse.org/releases/luna" site

  3. Expand "Web, XML, and Java EE Development"

  4. Check JST Server Adapters and JST Server Adapters Extentions

like image 166
Tomasz Bartnik Avatar answered Sep 22 '22 22:09

Tomasz Bartnik


For future poeple who have the same problem: Try to add server tab from eclipse menu, if it doesnt work, then go do @Tomasz Bartnik solution above, and retry the following again:

  1. Go to WIndow > Show view > Other

    enter image description here

  2. search for servers, select it and press OK

    enter image description here

It will then be added to your tabs

like image 24
Enissay Avatar answered Sep 24 '22 22:09

Enissay


The reason you might not be getting any results is because you might not be having the J2EE environment setup in your Eclipse IDE. Follow these steps to solve the problem.

  1. Goto Help -> Install new Software
  2. Select {Oxygen - http://download.eclipse.org/releases/oxygen} (or Similar option/version) in the "Work with" tab.
  3. Search for Web,XML,Java EE and OSGi Enterprise Development
  4. Check the boxes corresponding to,
    • Eclipse Java EE Developer Tools
    • JST Server Adapters
    • JST Server Adapters Extensions
  5. Click next and accept the license agreement.

Hope this helps.

like image 24
Ram Anand Vutukuru Avatar answered Sep 26 '22 22:09

Ram Anand Vutukuru


I ended up installing a new copy of Eclipse - JAVA EE, and it all works now.

like image 38
CodyBugstein Avatar answered Sep 26 '22 22:09

CodyBugstein


The Web Tools Platform provides the Java EE development tools, and is included in the IDE for Java EE Developers. Among other things, it provides the Servers view and makes it easy to launch a Tomcat server from there. You can either download the IDE for Java EE Developers, or go to the Help menu and Install New Software, looking for the Java EE features.

like image 45
nitind Avatar answered Sep 26 '22 22:09

nitind


Steps to follow:

1.Goto Help -> Install new Software
2.Give address http://download.eclipse.org/releases/oxygen and name as your choice.
3.Search for Java EE and choose 1.Eclipse Java EE Developer Tools 
4.Search for JST and choose 2.JST Server Adapters 3.JST Server Adapters Extensions
5.Click next and accept the license agreement.

Find the server option in the window-->preferences and add server as you need

like image 38
biddut Avatar answered Sep 23 '22 22:09

biddut


  1. In {workspace-directory}/.metadata/.plugins/org.eclipse.core.runtime/.settings delete the following two files:

    • org.eclipse.wst.server.core.prefs
    • org.eclipse.jst.server.tomcat.core.prefs
  2. Restart Eclipse

like image 37
adrian filipescu Avatar answered Sep 26 '22 22:09

adrian filipescu


Download the tomcat latest zip from https://tomcat.apache.org/download-90.cgi Rename the folder with simple name like 'tomcat'. Save the folder and copy the path.

Goto Help -> Install new Software Select {Oxygen - http://download.eclipse.org/releases/oxygen} in the "Work with" tab. Select the last option Web,XML,Java EE and OSGi Enterprise Development Check the boxes corresponding to 1.Eclipse Java EE Developer Tools 2.JST Server Adapters 3.JST Server Adapters Extensions Click next and accept the license agreement.

like image 32
Bibin Baby Avatar answered Sep 25 '22 22:09

Bibin Baby


You can install Tomcat server form Eclipse market place.

Help -> Eclipse Market Place search for 'Tomcat' -> Install Eclipse Tomcat plugin.

enter image description here

After installation restart eclipse.

like image 40
DON Avatar answered Sep 23 '22 22:09

DON


Eclipse IDE for Java Developers 'Servers' doesn't exist. Therefore download correct Eclipse IDE. It is Eclipse IDE for Enterprise Java Developers(Eclipse IDE for Java EE Developers). This way is easy.

like image 20
S.Rumeshi Avatar answered Sep 26 '22 22:09

S.Rumeshi


The reason you might not be getting any results is because you might not be having the J2EE environment setup in your Eclipse IDE. Follow these steps to solve the problem.

  1. Goto Help -> Install new Software Select relevant dropdown entry {Oxygen - http://download.eclipse.org/releases/<?>} (or Similar option/version) in the "Work with" tab.

  2. Search for Web,XML,Java EE and OSGi Enterprise Development Check the boxes corresponding to,Eclipse Java EE Developer Tools JST Server Adapters JST Server Adapters Extensions Click next and accept the license agreement.

like image 26
Pallav Khare Avatar answered Sep 24 '22 22:09

Pallav Khare


You have probably installed Eclipse for Java Developers instead of Eclipse IDE for Enterprise Java Developers, server tab and some other are not available.

You don't have to uninstall. Just rerun eclipse-inst-win64.exe and choose Java EE IDE

JAVA EE IDE Installation

like image 20
Camcam Avatar answered Sep 26 '22 22:09

Camcam