Simple and flexible method to run java as a windows service

后端 未结 2 1784
长发绾君心
长发绾君心 2021-02-06 06:24

I read SO q&a about launch java as windows service wrappers, but can\'t find/choose product, suitable for my requirements :

  1. Wrapper reads all java launch pa

相关标签:
2条回答
  • I'm not sure if JWrapper will fulfil all the requirements like 1 and 2 in the way that you want it since rather than you dictating how it does the launch and where it puts things etc JWrapper instead handles that stuff in its own way but it does produce executables for win/mac/linux and more importantly it does support windows service installation as well as macos and linux daemon installation:

    http://www.jwrapper.com/guide-installing-a-service.html

    The service support though is for paid licenses, the free version doesn't currently support it.

    Disclosure: I work for JWrapper

    0 讨论(0)
  • 2021-02-06 07:06

    I have had similar issues over the years. Its not that they all are inferior, its that they are all pretty hard to integrate nicely with your own project.

    You may want to check out stork: https://github.com/fizzed/stork

    It'll help create launchers for your Java console or daemon apps, and they will work across all major platforms. There is also a maven plugin in case you wanted to tie it into your existing build process.

    0 讨论(0)
提交回复
热议问题