jenkins 远程启动tomcat报错:Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
生活随笔
收集整理的這篇文章主要介紹了
jenkins 远程启动tomcat报错:Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
異常現(xiàn)象:
jenkins 遠(yuǎn)程啟動(dòng)tomcat報(bào)錯(cuò):Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
解決方案:
在開始腳本前面添加java的變量
export JAVA_HOME=/app/jdk1.8.0_144 export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar export PATH=${JAVA_HOME}/bin:$PATH
想學(xué)習(xí)更多微服務(wù)、分布式、中間件、數(shù)據(jù)庫、項(xiàng)目快速構(gòu)建等系列技術(shù)
請(qǐng)?jiān)L問Gblfy主頁:https://blog.csdn.net/weixin_40816738
讓我們一起進(jìn)步!!!
總結(jié)
以上是生活随笔為你收集整理的jenkins 远程启动tomcat报错:Neither the JAVA_HOME nor the JRE_HOME environment variable is defined的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Mysql和Oracle 数据库操作工具
- 下一篇: MyBatisPlus_通用servic