maven的web项目打包报错:No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK

打包过程中报错如下:

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

问题原因:

在IDE上运行项目是使用的jre,但是maven打包项目需要使用JDK

 问题解决:

Window --->preferences  --->java   --->Installed JREs ---->Add一个JDK进来

猜你喜欢

转载自www.cnblogs.com/zouhong/p/12187785.html