Cannot install Apache Tomcat in Eclipse

2019-08-07 09:31发布

问题:

I've downloaded apache-tomcat-8.0.8 archive, then I've unzipped it and tried to add it in Preferences -> Server -> Runtime Environments by clicking Search and selecting path to the uzipped archive. What I'm getting is Server Error

No new server runtime environments were found.

Any ideas why it might be happening? I have no Apache Tomcat options in New Server Runtime Environment window, which I get by clicking Add in the previous one. There are such options in every tutorial I read.

回答1:

I think there currently is no adapter for Tomcat 8 in Eclipse.

Updated

Don't use the search button. Click add and choose an adapter first. Open Apache and choose Tomcat 7. Click next and point the installation directory at your Tomcat folder.



回答2:

It seem that you have Eclipse without Java EE components.

so you see something like

instead of

Check Apache Tomcat Not Showing in Eclipse Server Runtime Environments (need to install JST Server Adapters )

Once you have plugins installed follow dialog flow e.g. like

http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.jst.server.ui.doc.user%2Ftopics%2Ftomcat.html