现在的位置: 首页 > 综合 > 正文

Target runtime Apache Tomcat 5.0 is not defined 

2013年05月09日 ⁄ 综合 ⁄ 共 927字 ⁄ 字号 评论关闭

Target runtime Apache Tomcat 5.0 is not defined 

在他们机器上整合好的工程在我机器上总是出现Target runtime Apache Tomcat 6.0 is 解决not defined.这个错误,找工程属性也没有,后来网上找到的方法。

  在工程目录下的.settings文件夹里,打开org.eclipse.wst.common.project.facet.core.xml文件,其内容是:

<?xml version="1.0" encoding="UTF-8"?>  

<faceted-project>  

  <runtime name="Apache Tomcat v6.0"/>  

  <fixed facet="jst.web"/>  

  <fixed facet="jst.java"/>  

  <installed facet="jst.java" version="5.0"/>  

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

</faceted-project>  

 

不要删了文件也不要全删除,要不还会有错误,删除中间几行,只留下下面三行就行

 

<?xml version="1.0" encoding="UTF-8"?>  

<faceted-project>  

</faceted-project>  

 

也或者你直接把其他程序里面的拷贝过来覆盖即可

<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
 <runtime name="BEA WebLogic Server v10.0"/>
  <fixed facet="arcgis"/>
  <fixed facet="jst.java"/>
  <fixed facet="jst.web"/>
  <installed facet="jst.java" version="5.0"/>
  <installed facet="jst.web" version="2.4"/>
  <installed facet="arcgis" version="9.3.0"/>
</faceted-project> 

抱歉!评论已关闭.