在此环境中没有使用jenkins提供编译器 [英] No compiler is provided in this environment with jenkins
本文介绍了在此环境中没有使用jenkins提供编译器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我在 maven 项目上尝试 Jenkins 构建时出现此错误:
I'm getting this error when I try a Jenkins build on a maven project:
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
已安装 java 和 maven 插件经过多次研究,我找不到解决方案!
The java and maven plugin are installed automatically, after several research, I couldn't find a solution!
有没有人遇到过这个问题?
Does anyone have ever face this issue?
推荐答案
转到Jenkins - >管理Jenkins - >配置系统 - > JDK。在JAVA_HOME字段下提供JDK的路径。
Go To Jenkins -> Manage Jenkins -> Configure System -> JDK. Provide path to the JDK under JAVA_HOME field.
这篇关于在此环境中没有使用jenkins提供编译器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文