https://blog.csdn.net/qq_43344109/article/details/105404728

Maven项目打包时出现以下错误:
Maven项目打包出现:No compiler is provided in this environment. Perhaps you are running on a JRE rather than JDK
原因是没有配置成jdk目录

解决步骤:
Maven项目打包出现:No compiler is provided in this environment. Perhaps you are running on a JRE rather than JDK

Maven项目打包出现:No compiler is provided in this environment. Perhaps you are running on a JRE rather than JDK

 

 

Maven项目打包出现:No compiler is provided in this environment. Perhaps you are running on a JRE rather than JDK

 

 

找到本机JDK所在路径,如果不知道,可以win键+R输入cmd,打开输入指令java -verbose查看JDK路径

Finish之后记得勾选jdk

Maven项目打包出现:No compiler is provided in this environment. Perhaps you are running on a JRE rather than JDK

 

 进入Execution Environments

Maven项目打包出现:No compiler is provided in this environment. Perhaps you are running on a JRE rather than JDK

 

 

Maven项目打包出现:No compiler is provided in this environment. Perhaps you are running on a JRE rather than JDK

 

再次打包

Maven项目打包出现:No compiler is provided in this environment. Perhaps you are running on a JRE rather than JDK

 

Maven项目打包出现:No compiler is provided in this environment. Perhaps you are running on a JRE rather than JDK

 

Maven项目打包出现:No compiler is provided in this environment. Perhaps you are running on a JRE rather than JDK

 

 剪切到tomcat下的webpps

 Maven项目打包出现:No compiler is provided in this environment. Perhaps you are running on a JRE rather than JDK

进入bin,找到startup.bat,启动tomcat
Maven项目打包出现:No compiler is provided in this environment. Perhaps you are running on a JRE rather than JDK

 启动成功后输入项目网址

Maven项目打包出现:No compiler is provided in this environment. Perhaps you are running on a JRE rather than JDK

 

相关文章:

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