在使用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.




相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-28
  • 2022-12-23
  • 2021-10-04
  • 2021-07-28
  • 2021-04-26
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-03-01
  • 2021-04-18
  • 2022-01-16
  • 2022-12-23
  • 2021-11-21
相关资源
相似解决方案