Subscribe to the RSS feed then follow me on twitter at @mrlacey (misc) and @wpug (WPDev news)

Monday, March 08, 2010

Installing Hudson as a service on Windows Server 2008 R2 x64

I'm currently installing HUDSON on a VM to handle the CI for a project I'm working on.
Unfortunately I got errors when trying to install it as a Windows Service .
To investigate this further I checked the event log:

 Checking hudson.wrapper.log I saw:

2010-03-08 10:49:21 - Starting java -Xrs -Xmx256m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "C:\Users\Administrator\.hudson\hudson.war" --httpPort=8080

 This made me realise that the problem was that it didin't know how to start Java.exe.  So I simply added it's directory ("C:\Program Files (x86)\Java\jre6\bin\") to the PATH environment variable.

Problem sorted.  Hudson now runs as a service without problem.

Are you a Windows Phone developer? If so, you could be getting rewards for the apps you build and the success they achieve by joining Nokia's DVLUP program.