在使用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文件夹

Failed while changing version of Java to 1.8.

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

Failed while changing version of Java to 1.8.

 

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

 

 

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


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

 

Failed while changing version of Java to 1.8.

相关文章:

  • 2021-05-29
  • 2021-11-21
  • 2021-05-25
  • 2021-11-22
  • 2021-09-09
猜你喜欢
  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
  • 2021-05-01
  • 2022-01-09
相关资源
相似解决方案