How to implement a single instance Java application?

后端 未结 17 735
北荒
北荒 2020-11-22 04:32

Sometime I see many application such as msn, windows media player etc that are single instance applications (when user executes while application is running a new applicatio

17条回答
  •  渐次进展
    2020-11-22 04:57

    I have found a solution, a bit cartoonish explanation, but still works in most cases. It uses the plain old lock file creating stuff, but in a quite different view:

    http://javalandscape.blogspot.com/2008/07/single-instance-from-your-application.html

    I think it will be a help to those with a strict firewall setting.

提交回复
热议问题