![](/img/trans.png)
[英]Whats the difference between the “java” file found in “jdk1.8.0_121/bin” and the one that's in “jdk1.8.0_121/jre/bin”?
[英]Jenkins: \Java\jdk1.8.0_172\jre\bin“” was unexpected at this time
我有一個詹金斯大師和幾個節點。 Windows上運行的一些作業給我以下錯誤消息:
\Java\jdk1.8.0_172\jre\bin"" was unexpected at this time.
這些作業在Windows系統本身上運行沒有問題,但是在使用Jenkins運行時卻沒有問題。 因此,我進行了更深入的研究,發現在節點信息中,我可以在jenkinsserver/computer/node/systemInfo
下看到java.library.path
值(例如):
C:\Program Files\Java\jre1.8.0_172\bin;C:\Windows\Sun\Java\bin;
C:\Windows\system32;C:\Windows;C:\ProgramData\Oracle\Java\javapath;
C:\Users\bsadmin\AppData\Local\Microsoft\WindowsApps;"C:\Program Files\Java\jre1.8.0_172\bin";.
我認為,此錯誤來自最后一部分: "C:\\Program Files\\Java\\jre1.8.0_172\\bin"
。 我在每台Windows從機上都看到了這一點。
這個價值從何而來? 是否有可能以某種方式禁用它?
編輯
這是我的意思的圖片:
我認為Java在Jenkins Master和Slave之間有所不同。 例如,Jenkins Master的PC是x64,而slave是x86。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.