I have a Java application and would like it to run as a service in Windows. I researched the net and saw some ways of doing it being some more practical and some confusing. Anyone who has done something like this could indicate which path they used?
I have a Java application and would like it to run as a service in Windows. I researched the net and saw some ways of doing it being some more practical and some confusing. Anyone who has done something like this could indicate which path they used?
You can not make a Java application run as a service in Windows using Java only.
You will have to make another application, in another language (.Net, C ++ ...) encapsulating your own. This is another application that will run as a service and will manage the execution of your Java application.
If you have the option of using a third-party tool (which is not always for free), I have already used this one and recommend it because it is flexible, works great and saves a lot of your workforce: Java Service Wrapper .