Java application as a MS Windows service
by ricardoz on Jul.29, 2009, under Tips
It’s really annoying to run something interactively on MS Windows when you know deep inside it should be an OS Service. Doing this on a *nix system is quite simple (most of the times you just need to write a short shell script), but on MS Windows it’s not so easy.
Anyway, after looking into a few solutions for my problem I run into the Java Service Wrapper, which is sort of a helper application that allows you to run virtually any Java (standalone) program as a MS Windows service (amongst a number of other features).
I managed to get an existing standalone console based batch process running as a service in just a few minutes so I can say it’s also quite easy to learn. If you have the source code of the app you want to wrap, I recommend you use “Method 3“, it’s really simple and it feels more natural than the others proposed by the wrapper creators.