尝试将Tomcat v7添加到eclipse,但是在“定义新服务器”中找不到它。窗口 [英] Trying to add Tomcat v7 to eclipse, but cannot find it in "Define a New Server" window

查看:264
本文介绍了尝试将Tomcat v7添加到eclipse,但是在“定义新服务器”中找不到它。窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在eclipse中创建一个动态Web项目,但是我的Apache Tomcat版本是v7,当我尝试定义新的服务器是从v3.2到v6.0时,可用的tomcat服务器列表,那里没有什么更高的。



我尝试点击下载其他服务器适配器,但找不到任何更新版本的tomcat。我有一台Tomcat服务器在我的机器上工作,但是我想将它与Eclipse进行链接,使开发变得更加简单。



我也试过去Window - > Preferences - >服务器选项卡 - >安装的运行时选项卡,然后单击搜索,然后选择我的tomcat安装文件夹。它不添加任何东西,也没有任何错误。



任何想法如何做到这一点?我认为版本差异可能是我无法将eclipse项目直接编译到tomcat服务器的原因,我无法弄清楚如何添加它。

解决方案

您需要使用等于或大于3.6(Helios)的Java EE开发人员的Eclipse IDE版本。其他构建和早期版本没有Tomcat 7的适配器。确保您还运行最新版本的Web工具。还要尝试让eclipse在server-> runtime环境下搜索它。如果您正在运行新的EE版本,可能会为您检测。


I'm trying to create a dynamic web project in eclipse, but my version of Apache Tomcat is v7 and the list of abvailable tomcat servers when I try to define the new server are from v3.2 to v6.0, there is nothing higher.

I tried to click "Download additional server adapters" but could not find any updated versions of tomcat there. I have a tomcat server working on my machine, but I wanted to link it with Eclipse to make development easier.

I've also tried going to Window -> Preferences -> Server Tab -> Installed Runtimes tab and clicking search, then selecting my tomcat installation folder. It doesn't add anything and doesn't give any error.

Any ideas of how to do this? I think the version difference may be the reason I can't get my eclipse projects to compile directly to the tomcat server and I can't figure out how to add it.

解决方案

You need to be using a version of Eclipse IDE for Java EE Developers equal to or greater than 3.6 (Helios). Other builds and earlier versions do not have the adapter for Tomcat 7. Make sure you are running the latest version of the web tools as well. Also try letting eclipse search for it under server->runtime environment. It may detect it for you, if you are running a new enough version of EE.

这篇关于尝试将Tomcat v7添加到eclipse,但是在“定义新服务器”中找不到它。窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆