Failed while changing version of Java to 1.8.

在使用eclipse导入一个新的项目时,项目-->鼠标右键-->Properties 弹出框中修改Project Facets为1.8时,eclipse报错,错误信息以下:html

 

 

[html]  view plain  copy
 
  1. <span style="font-size:18px;">Failed while changing version of Java to 1.8.  
  2. Project facet jst.web.jstl has not been defined.</span>  


网上搜索后找到了一种解决方法,以下:java

 

找到项目目录中的.classpath文件夹web

使用notepad++工具打开,以下:eclipse

 

将红框中的一行删除就能够了工具

 

 

[html]  view plain  copy
 
  1. <attribute name="owner.project.facets" value="jst.web.jstl"/>  


从新修改Project Facets 中的java,发现成功了,项目中的红叉没有了spa

 

相关文章
相关标签/搜索