當前位置:
首頁 >
jenkins 远程启动tomcat报错:Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
發布時間:2024/9/27
22
豆豆
生活随笔
收集整理的這篇文章主要介紹了
jenkins 远程启动tomcat报错:Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
異?,F象:
jenkins 遠程啟動tomcat報錯: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
想學習更多微服務、分布式、中間件、數據庫、項目快速構建等系列技術
請訪問Gblfy主頁:https://blog.csdn.net/weixin_40816738
讓我們一起進步!!!
總結
以上是生活随笔為你收集整理的jenkins 远程启动tomcat报错:Neither the JAVA_HOME nor the JRE_HOME environment variable is defined的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Mysql和Oracle 数据库操作工具
- 下一篇: MyBatisPlus_通用servic