简体   繁体   中英

Running java application as a windows service

I would like to run my java application as a windows service. All I need is some sort of startup script (similar to init.d in linux). I cannot afford the luxury of any paid libraries. I would like to keep it independent of any third party libraries if possible.

Consider Apache Commons Daemon project:

http://commons.apache.org/proper/commons-daemon/

可能只是您应该为Windows Task Scheduler注册一个任务,该任务仅使用必需的参数运行java.exe,并为此任务“上电”,“系统启动”等设置触发器。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM