Eclipse项目红叉:报错Description Resource Path Location Type Target runtime Apache Tomcat v8.0 is not defined.

在学习机房写的项目,tomcat版本是8.0的,然后用u盘拷到自己的电脑上,导入项目,就出现了:

 

 

 但是项目中并没有错误,后来看报错信息发现:

 

 

 

 是tomcat版本不对,于是乎:打开项目下的.settings文件夹,下有一个org.eclipse.wst.common.project.facet.core的xml文件。

打开发现:

 

 将这行删除即可。

 

 

 

 

posted @ 2019-09-18 12:56  GhostRider_Qin  阅读(3845)  评论(0编辑  收藏  举报