使用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即可

相关文章:

猜你喜欢
相关资源
相似解决方案