sts打包spring项目No compiler is provided in this environment. Perhaps you are running on a JRE rather th

使用sts编译好的spring boot 开发的maven项目打包时:

出现错误:No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

解决方案,打开windows-preference-Java-install Jre ,选择自己电脑安装的jdk,选择应用。(一般开始时就给编辑器配置过),但楼主配置过还是出现了这个问题,可能编辑器配置并不是直接可以替换全部默认配置。

然后右键选择refresh(或者ALT+F5)

再重新打包run maven

楼主成功,特此记录

你可能感兴趣的:(信息,bug)