无法在eclipse IDE中将项目与运行时服务器关联 [英] Unable to associate project with a runtime server in eclipse IDE

查看:232
本文介绍了无法在eclipse IDE中将项目与运行时服务器关联的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个动态Web项目。截至目前,它有一个试图运行的jsp文件。当我尝试将项目与特定的运行时(tomcat 6.0)相关联时,它没有发生。

I had created a dynamic web project. AS of now it has a jsp file which am trying to run. When I tried to associate the project with a specific runtime(tomcat 6.0), it is not happening.

我右键单击了项目/属性/目标运行时。它没有显示任何运行时(我在服务器中添加了tomcat 6.0)。当我单击显示所有运行时复选框时,一切都进入禁用模式。

I right clicked on the project/properties/Targeted Runtimes. It doesn't show any runtimes(I have added tomcat 6.0 in servers). When I click the checkbox 'Show all runtimes', everything comes in disabled mode.

可能是什么问题?

附上问题的截图。

更新:我甚至尝试创建一个新的运行时并将其与项目(project / properties / Targeted Runtimes / new)相关联。即使是新创建的运行时也会被禁用,并且无法将其与项目关联。

Update: I even tried to create a new runtime and associate it with the project( project/properties/Targeted Runtimes/new). Even the newly created runtime is getting disabled and am unable to associate it with the project.

推荐答案

将项目添加到运行时您的项目和运行时必须匹配;你必须检查:

To add a project to a runtime you must have a match between your project and your runtime; you have to check:


  • 项目方面:要在tomcat上运行它必须是动态Web项目

  • java version:你不能在java 6运行时运行java 7项目

  • web项目版本:你不能运行与Java不匹配的项目可在运行时部署的EE版本

一旦验证了项目与运行时之间的匹配,就需要项目以运行时,如下所示:

Once you've validated the match between your project and the runtime, you need the project to target the runtime, as follows:


  1. 在Package Explorer,Project Explorer或Navigator中打开项目。

  2. 右键单击项目,然后选择属性。

  3. 单击属性窗口中的Targeted Runtimes。

  4. 选中复选框要定位的已验证运行时。

  5. 单击确定确认。

  1. Open the project in Package Explorer, Project Explorer, or Navigator.
  2. Right-click on the project, and select "Properties".
  3. Click on "Targeted Runtimes" in the properties window.
  4. Select the checkbox of the validated runtime that is to be targeted.
  5. Confirm by clicking "OK".

新运行时将与该项目相关联。如果未显示或禁用要选择的运行时,则可能需要卸载一个或多个当前安装的项目构面。这可以在相同的属性对话框中完成。

The new runtime will be associated with that project. If a runtime that you want to select is not displayed or is disabled, you may need to uninstall one or more of the currently installed project facets. This can be done within the same Properties dialogue.

这篇关于无法在eclipse IDE中将项目与运行时服务器关联的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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