javawindows-services

How to create a Windows service from Java app


I've just inherited a Java application that needs to be installed as a service on XP and Vista. It's been about 8 years since I've used Windows in any form and I've never had to create a service, let alone from something like a Java app (I've got a jar for the app and a single dependency jar - log4j). What is the magic necessary to make this run as a service? I've got the source, so code modifications, though preferably avoided, are possible.


Solution

  • I've had some luck with the Java Service Wrapper