Apache Tomcat Not Showing in Eclipse Server Runtime Environments

Apache Tomcat 9 Not Showing in Eclipse Server Runtime Environments

You have downloaded and installed tomcat 9 to your machine, then on Eclipse > Window > Preferences > Server > Runtime Environment, after clicking on Add, and then select your downloaded tomcat.

No server in Eclipse; trying to install Tomcat

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

Tomcat 8 does not appear in Eclipse server list

Eclipse Kepler (4.3) was released in 2013, Tomcat 8 was released in 2014 and 8.5 in 2016 - so your Eclipse release is too old to know about those releases. Use a newer release of Eclipse such as the current 2020-09 (4.17) release.

Adding Tomcat into Eclipse

You need to specify the server runtime in that window. From the browse button, select the base path of the directory where you have installed tomcat and hit next. Hopefully that should do it. There should also be an option to download and install, if you have internet connectivity.

If you dont see any server types in the 'add new Server' dialog, then you are probably missing the server adapters. In which case click on the 'Download additional server adapters' link. This will allow you to pick and download 'tomcat server adapter'. Once that is done.

Add New Server

Add New Server

Some screenshots etc would also help in understanding and helping you resolve your issue.

Hope this helps.

No server in windowspreferences

You did not install the correct Eclipse distribution. Try install the one labeled "Eclipse IDE for Java EE Developers".

Tomcat server not being recognized

You can tell it about the Tomcat installation using the Server Runtime Environments preference page.

Sample Image

If Tomcat isn't already a known server type, you might need to install a few more. The WTP FAQ has instructions.

All of those tutorials are wrong. You do want to download a copy of Tomcat from Apache so it has the expected layout when Eclipse looks for the jars needed to launch it, but there's no reason to actually put it in the workspace.



Related Topics



Leave a reply



Submit