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

 

相關文章
相關標籤/搜索