I have a simple java program which is just a single piece of code that reads from a database and modifies the contents of the database based on certain conditions. Now, what I want is that this program should start automatically at the startup and silently run in the background unless someone kills it from the task manager. I have never done something like this before and don't know exactly how to go about it. Can someone help me out as to how this can be done? Thank you..
Follow the these steps to do the job :(Assuming you are using windows and jre is installed )
java LOCATION TO THAT CLASS FILE/MyProgram
in that.There are two problems here
How to add this program to the startup
Run the program as a daemon (background process)
Also for windows, you can check this JSL http://www.roeschter.com/
Thanks.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With