maven打包时提示No compiler is provided in this environment. Perhaps you are running on a JRE rather than

最近在项目打包时提示错误No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?,项目打包不了。百度了一下原来是Window-->preferences-->Java-->Installed JREs,下面jre路径配置有问题,报错时配置的路是C:\Program Files\Java\jre1.8.0_45 ,正确配置应该是C:\Program Files\Java\jdk1.8.0_45\jre如下图:



猜你喜欢

转载自blog.csdn.net/builderwfy/article/details/79723575