javawindowsserviceautorun

Setting my java application as windows service


I know that there were some of similar questions, but I would rather know how to set java application just by same application. Just more precisely I want to create program in java and send it to my fiend, after open it my application will set itself as windows service, something like hamachi, when we download, it will always run with our system. I read about java service wrapper, but I think it allows to do this from computer position, am I wrong?


Solution

  • You can wrapp to exe with launch4j

    You can add service based on exe described here

    Hope it helps!