使用eclipse打包springboot项目时一直报错

[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

经查询后找到问题所在

参考博文:https://blog.csdn.net/lslk9898/article/details/73836745

主要原因为:我的eclipse中编译项目使用的是jre,而maven的配置文件及setting.xml中配置的编译项目是jdk

      只需在window中preference中的Java中的installed JREs设置为jdk即可

相关文章:

  • 2022-01-06
  • 2021-11-09
  • 2021-09-26
  • 2021-09-07
  • 2021-05-03
  • 2021-07-30
  • 2021-12-22
猜你喜欢
  • 2021-10-11
  • 2021-08-01
  • 2022-01-02
  • 2021-09-01
  • 2021-11-04
  • 2021-10-16
  • 2021-11-02
相关资源
相似解决方案