I have a 开发者_运维知识库Swing Java application; assume it is just like calculator. What I want to do is
- Start this automatically in start up
- Run as a Windows service
- Show an icon in the system tray when it closes.
Using Java service wrapper, I have made it to Windows service; but it is still not starting on reboot, nor does an icon display in the tray.
You can use winrun4j or Java Service Wrapper
For java service wrapper tutorial, have a look to this article
Take a look on http://commons.apache.org/daemon/jsvc.html I believe that this is exactly what you need.
精彩评论