|Microsoft Windows Logo|
The Windows Resource Kit gives us a few cool Windows tools, but for our purpose we only really need srvany.exe. Srvany.exe is basically just a Windows service that allows us to run any other program as a service. Since java.exe is also a program, we can use srvany.exe to run a Java program as a Windows service. I'll demonstrate this by creating a Windows service that launches Selenium RC 1.
To create a service named SeleniumRC1 with srvany.exe, simply drop to the command line (as Administrator if using Vista or Windows 7) and type sc create SeleniumRC1