导入项目发现 Target runtime Apache Tomcat v7.0 is not defined.

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了导入项目发现 Target runtime Apache Tomcat v7.0 is not defined.相关的知识,希望对你有一定的参考价值。

运行时没有找到tomcat v7.0

 

Eclipse

右键--》properties--》targeted runtime,把原项目的tomcat去掉勾选,换上自己的Tomcat

 

myEclipse

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

<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
    <runtime name="Tomcat v7.0"/>
  <fixed facet="java"/>
  <fixed facet="jst.web"/>
  <fixed facet="wst.jsdt.web"/>
  <installed facet="java" version="1.6"/>
  <installed facet="jst.web" version="3.0"/>
  <installed facet="wst.jsdt.web" version="1.0"/>
</faceted-project>

删除第一句话后是

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

  <fixed facet="java"/>
  <fixed facet="jst.web"/>
  <fixed facet="wst.jsdt.web"/>
  <installed facet="java" version="1.6"/>
  <installed facet="jst.web" version="3.0"/>
  <installed facet="wst.jsdt.web" version="1.0"/>
</faceted-project>

保存,刷新!

 

以上是关于导入项目发现 Target runtime Apache Tomcat v7.0 is not defined.的主要内容,如果未能解决你的问题,请参考以下文章

发现eclipse红叉,查看markers发现Target runtime Apache Tomcat 6.0 is not defined

找bug - Target runtime Apache Tomcat v7.0 is not defined

Target runtime Apache Tomcat 6.0 is not defined 解决方法(转)

Target runtime com.genuitec.runtime.generic.jee50 is not defined工程错误

Target runtime Apache Tomcat v6.0 is not defined.错误解决方法

Target runtime Apache Tomcat v6.0 is not defined.错误解决方法