在eclipse配置tomcat的时候,我发现在Eclipse—Preferences—server—Runtime Environment中,点击“Add”按钮,里面看不到tomcat的,只有个“J2EE Runtime Library”。
解决办法:
- Help -> Install New Software
- Choose “Luna – http://download.eclipse.org/releases/Luna” site
- Expand “Web, XML, and Java EE Development”
- Check JST Server Adapters (version 3.2.2) and JST Server Adapters Extentions
安装完后,就能在 Server Runtime Environments的Add按钮中看到tomcat的选项了。
EDIT: With Eclipse 3.7 Indigo Classic, Eclipse Kepler and Luna, the
steps are the same (with appropriate update site) but you need both JST Server Adapters and JST Server Adapters Extentions to get the Server Runtime Environment options.