Jenkins does not start as a Windows service

I have followed the steps to run jenkins as a window service . Followed from URL :

But jenkins is not starting as a window service. When i did some research i found that the problem is with following jenkins.xml file.

Attached as an image. jenkins.xml snapshot

When i change this java keyword to specific jdk path (C:Program FilesJavajdk1.8.0_60binjava.exe) it works but without this jenkins service not started.

So just wanted to know what is exact meaning of java word inside executable tag?

If the executable tag just contains the word ‘java’ then java is expected to be in your PATH system variable.

So if you were to open a command prompt and type ‘java’, it should launch java. If it doesn’t then Java isn’t on your PATH and you will have to specify the full path to the executable, or alternatively add java to the PATH.

Googling “add to path windows” gives plenty of instructions on how to do this.

Hello, buddy!稿源:Hello, buddy! (源链) | 关于 | 阅读提示

本站遵循[CC BY-NC-SA 4.0]。如您有版权、意见投诉等问题,请通过eMail联系我们处理。
酷辣虫 » 综合编程 » Jenkins does not start as a Windows service

喜欢 (0)or分享给?

专业 x 专注 x 聚合 x 分享 CC BY-NC-SA 4.0

使用声明 | 英豪名录