Simple and flexible method to run java as a windows service

后端 未结 2 1778
长发绾君心
长发绾君心 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条回答
  •  梦如初夏
    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.

提交回复
热议问题