Target runtime Apache Tomcat v6.0 is not defined.错误解决方法
2012-08-06 00:18
447 查看
背景是使用eclipse jaee版本建立的一个web项目,在myeclpse中导入进来,解决了一些依赖包的问题,然后就剩题目所述问题了。解决方法,找到当前项目的.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="java"/>
<fixed facet="wst.jsdt.web"/>
<fixed facet="jst.web"/>
<installed facet="java" version="1.6"/>
<installed facet="jst.web" version="2.5"/>
<installed facet="wst.jsdt.web" version="1.0"/>
</faceted-project>
将内容删掉,则只剩下:
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
</faceted-project>
重新build项目即可。
参考:http://blog.csdn.net/xw13106209/archive/2010/09/27/5910358.aspx
像我上面那样操作,这个项目只是个java项目了,不具备web 项目的能力。看来还是工具不匹配,只能用myeclipse新建web项目,再将源码拷贝过去了。
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<runtime name="Apache Tomcat v6.0"/>
<fixed facet="java"/>
<fixed facet="wst.jsdt.web"/>
<fixed facet="jst.web"/>
<installed facet="java" version="1.6"/>
<installed facet="jst.web" version="2.5"/>
<installed facet="wst.jsdt.web" version="1.0"/>
</faceted-project>
将内容删掉,则只剩下:
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
</faceted-project>
重新build项目即可。
参考:http://blog.csdn.net/xw13106209/archive/2010/09/27/5910358.aspx
像我上面那样操作,这个项目只是个java项目了,不具备web 项目的能力。看来还是工具不匹配,只能用myeclipse新建web项目,再将源码拷贝过去了。
相关文章推荐
- 从SVN检出的项目出错(Target runtime Apache Tomcat v5.0 is not defined 错误解决方法)
- eclipse Target runtime Apache Tomcat v6.0 is not defined.错误解决方法
- Target runtime Apache Tomcat v6.0 is not defined.错误解决方法
- Target runtime Apache Tomcat v6.0 is not defined.错误解决方法
- Target runtime Apache Tomcat v6.0 is not defined.错误解决方法
- Target runtime Apache Tomcat v6.0 is not defined.错误解决方法
- Target runtime Apache Tomcat v5.0 is not defined 错误解决方法
- Target runtime Apache Tomcat v6.0 is not defined.错误解决方法
- Target runtime Apache Tomcat v7.0 is not defined.错误解决方法
- Target runtime Apache Tomcat v6.0 is not defined.错误解决方法
- Target runtime Apache Tomcat v7.0 is not defined.错误解决方法
- Target runtime Apache Tomcat is not defined.错误解决方法
- Target runtime Apache Tomcat v6.0 is not defined.错误解决方法
- Target runtime Apache Tomcat v6.0 is not defined.错误解决方法
- Target runtime Apache Tomcat v6.0 is not defined.错误解决方法
- Target runtime Apache Tomcat v8.0 is not defined.错误解决方法
- 从SVN检出的项目出错(Target runtime Apache Tomcat v5.0 is not defined 错误解决方法)
- Target runtime Apache Tomcat v6.0 is not defined.错误解决方法
- Target runtime Apache Tomcat XXX is not defined.错误解决方法
- eclipse报错"Target runtime Apache Tomcat v6.0 is not defined."错误解决方法