eclipse项目中所有文件都不报错,可是项目上却出现一个红叉?

 

这个问题,是因为MyEclipse项目导入到Eclipse导致的,项目文件不报错,但是项目出现了一个红叉,

调整在problems视图中出现Errors错误:

Description Resource Path Location Type
Target runtime com.genuitec.runtime.generic.jee70 is not defined.

Description    Resource    Path    Location    Type
Target runtime com.genuitec.runtime.generic.j2ee13 is not defined.    wwwjuefeng_service        Unknown    Faceted Project Problem
 

解决方式:我们打开项目根目录,找到.settings文件夹,打开

org.eclipse.wst.common.project.facet.core.xml文件

,打开后,会发现有一个配置行:

< runtime name="com.genuitec.runtime.generic.jee70" />

删掉该行后保存。回到eclipse,把项目刷新一下, 红叉就没有了。

猜你喜欢

转载自my.oschina.net/u/3409876/blog/1612563
今日推荐