導入項目發現 Target runtime Apache Tomcat v7.0 is not defined.

運行時沒有找到tomcat v7.0java

 

Eclipseweb

右鍵--》properties--》targeted runtime,把原項目的tomcat去掉勾選,換上本身的Tomcattomcat

 

myEclipseeclipse

在工程目錄下的.settings文件夾裏,打開org.eclipse.wst.common.project.facet.core.xml文件,其內容是:spa

<?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>

刪除第一句話後是code

<?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>

保存,刷新!xml

相關文章
相關標籤/搜索