How to implement a single instance Java application?

后端 未结 17 992
北荒
北荒 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:39

    If the app. has a GUI, launch it with JWS and use the SingleInstanceService.

    Update

    The Java Plug-In (required for both applets and JWS apps) was deprecated by Oracle and removed from the JDK. Browser manufacturers had already removed it from their browsers.

    So this answer is defunct. Only leaving it here to warn people looking at old documentation.

提交回复
热议问题