2

I have a Swing Java application; assume it is just like calculator. What I want to do is

  1. Start this automatically in start up
  2. Run as a Windows service
  3. 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.

1
  • @Andrew Thompson , can't you understand the problem i have ? Commented May 9, 2011 at 21:50

2 Answers 2

3

You can use winrun4j or Java Service Wrapper

For java service wrapper tutorial, have a look to this article

Sign up to request clarification or add additional context in comments.

Comments

2

Take a look on http://commons.apache.org/daemon/jsvc.html I believe that this is exactly what you need.

3 Comments

read the link I sent. I cannot explain better than it is already explained.
why can't u understand? I want to run in windows, not in linux
@shan this text is from the link: "It can run on Win32 via the Cygwin emulation layer (see Cygwin for more information), however Win32 users may prefer to use procrun instead, which allows the application to run as a Windows Service."

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.