Make Java Application Run as a Service

Asked

Viewed 206 times

2

I have a Java application and would like it to run as a service on Windows. I researched the net and saw some ways to do it being some more practical and some confusing. Anyone who’s ever done anything like this could indicate which way they went?

  • Take a look here.

1 answer

3


You can’t make a Java application run as a service on Windows using only Java.

You will need to make another application, in another language (.Net, C++...) encapsulating yours. This other application will run as a service and will manage the execution of your application in Java.

If you have the option to use a third party tool (which is not always free), I have already used this one and recommend it because it is flexible, works very well and saves a lot of manpower your: Java Service Wrapper.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.