当我们开始使用idea的时候,编译jsp程序我们有可能出现编译错误,然而我们的代码又没有什么问题。

idea出现:error:java: Target level '1.7' is incompatible with source level '1.8'.解决办法

解决方法一:我们开始的时候可以通过修改java compiler来解决这样的问题,点击file菜单->setting,然后更改相应jdk版本就行了

idea出现:error:java: Target level '1.7' is incompatible with source level '1.8'.解决办法

如果解决不了。

请使用找到相应的项目中iml文件打开,相应的版本更改成你相应jdk版本

然后问题就可以愉快的解决了。

我是通过修改impl文件中的LANGUAGE_LEVEL来最终解决问题的。

相关文章:

  • 2021-11-05
  • 2022-12-23
  • 2021-07-03
  • 2022-12-23
  • 2023-02-17
  • 2021-12-07
  • 2022-12-23
猜你喜欢
  • 2022-01-14
  • 2022-12-23
  • 2021-08-03
  • 2021-07-10
相关资源
相似解决方案