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

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

最近在项目打包时提示错误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如下图:

20180328102523944
--------------------- 
作者:builderwfy 
来源:CSDN 
原文:https://blog.csdn.net/builderwfy/article/details/79723575 
版权声明:本文为博主原创文章,转载请附上博文链接!

转载于:https://my.oschina.net/bv10000/blog/2993470

你可能感兴趣的:(maven打包时提示No compiler is provided in this environment. Perhaps you are running on a JRE rather than...)