Failed while changing version of Java to 1.8.

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

 

 

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


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

 

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

使用notepad++工具打开,如下:

 

将红框中的一行删除就可以了

 

 

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


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

 

posted on 2018-06-11 23:29  悄悄的来,匆匆的走  阅读(665)  评论(0编辑  收藏  举报

导航