打包过程中报错如下:

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

maven的web项目打包报错: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进来

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

 

相关文章:

  • 2021-04-01
猜你喜欢
  • 2021-09-09
  • 2021-09-26
  • 2021-10-17
  • 2021-10-02
相关资源
相似解决方案