I wrote a java swing application and it has some simple specifications. These are the specifications:
- From very beginning of the application it has a privilege to add to the system tray.
- The application never exit when Main
JFrameis closed. It means, it is still running.
Now my problem is how to check it is still running or not and if it is running, how could I run Timer inside it?
Do you, Java experts have any ideas about this problem?
pson unix/linux system's if there is a java process that is running. You can also launch jconsole on the host and see what are the local java process apart from jconsole itself.SingleInstanceServiceof the JNLP API (available to desktop apps. launched using Java Web Start). OTOH I don't know how well JWS would integrate with the requirement for entry in the system tray..