Unable to associate project with a runtime server in eclipse IDE

1.

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

  • project facet: to run on tomcat it must be a Dynamic Web Project
  • java version: you can't run for example a java 7 project on a java 6 runtime
  • web project version: you can't run a project that doesn't match the Java EE version deployable in the runtime

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

  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.


2.

I know it's already answered question, but I like to share my solution with new users if I can help..

For me the problem was because of the Dynamic wen Project version, 3.0 work with java 1.7 ( I was using 3.1) . If it didn't work you can access .settings folder in your project, org.eclipse.wst.common.project.facet.core.xml file and set the version that you need.

<installed facet="jst.web" version="3.0"/>

Hope I can help new users


转载:http://stackoverflow.com/questions/9237751/unable-to-associate-project-with-a-runtime-server-in-eclipse-ide

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值