Jenkins构建时遇到的No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

Jenkins构建时报错:

[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

解决办法:

返回面板-系统管理-Global Tool Configuration

 

找到JDK-单击JDK安装,设置JAVA_HOME,注意不要勾选“自动安装”。

 

posted @ 2017-05-05 15:41  ycyzharry  阅读(5837)  评论(0编辑  收藏  举报