Jenkins编译打包时报错The JAVA_HOME environment variable is not defined correctly + mvn clean package The JA
2017-10-17 13:46
741 查看
+ mvn clean package
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE
Build step 'Execute shell' marked build as failure
Archiving artifacts
Finished: FAILURE
第一反应是去查看Jenkins的环境变量配置(Jenkins的web端进行配置),看了一眼JAVA_HOME的配置感觉没什么问题,可是继续执行流水还是报同样的错误。
最终发现原来是在配置JAVA_HOMEd的时候在jdk的路径前面多家了一个空格。怪不得一开始看不出来JAVA_HOME的错误。
大家在其他场景下,配置路劲的时候也要注意“空格”的问题!
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE
Build step 'Execute shell' marked build as failure
Archiving artifacts
Finished: FAILURE
第一反应是去查看Jenkins的环境变量配置(Jenkins的web端进行配置),看了一眼JAVA_HOME的配置感觉没什么问题,可是继续执行流水还是报同样的错误。
最终发现原来是在配置JAVA_HOMEd的时候在jdk的路径前面多家了一个空格。怪不得一开始看不出来JAVA_HOME的错误。
大家在其他场景下,配置路劲的时候也要注意“空格”的问题!
相关文章推荐
- JRE_HOME错误 The JAVA_HOME environment variable is not defined correctly
- The JAVA_HOME environment variable is not defined correctly This environment variable is needed to r
- The JAVA_HOME environment variable is not defined correctly
- idea创建web项目时启动tomcat出现The JAVA_HOME environment variable is not defined correctly
- Tomcat the java_home environment variable is not defined correctly
- the java_home environment variable is not defined correctly
- 在idea启动tomcat出现The JAVA_HOME environment variable is not defined correctly的解决
- maven 配置(安装)以及遇到的The JAVA_HOME environment variable is not defined correctly.
- TOMCAT启动时报错:the CATALINA_HOME environment variable is not defined correctly
- the java_home environment variable is not defined correctly This environment variable is needed to r
- maven 的一些配置和常见错误(The JAVA_HOME environment variable is not defined correctly. This environment vari)
- JRE_HOME错误 The JAVA_HOME environment variable is not defined correctly
- 双击startup.bat,启动不了tomcat,JAVA_HOME environment variable is not defined correctly
- 运行Tomcat出现the JRE_HOME environment variable is not defined correctly
- MavenReportException:The environment variable JAVA_HOME is not correctly set.错误异常解决方法
- tomcat启动一闪而过解决办法报错The CATALINA_HOME environment variable is not defined correctly
- TOMCAT闪退。cmd执行startup.bat保错:the CATALINA_HOME environment variable is not defined correctly
- 关于Tomcat,startup JAVA_HOME or JRE_HOME environment variable is not defined correctly解决方案
- tomcat配置环境变量后在cmd中输入startup出现the JRE_HOME environment variable is not defined correctly This environ
- 下载Apache Tomcat 7.0 ,运行报错为The CATALINA_HOME environment variable is not defined correctly