How to differentiate between different JavaWS applications from the list of processes in the task manager process list?

后端 未结 2 1691
抹茶落季
抹茶落季 2021-01-26 01:46

I am using JavaWS to launch an application, then how to check whether that application is running or not in the user\'s machine as it\'s name in the Task manager process list is

相关标签:
2条回答
  • 2021-01-26 01:49

    On Windows7 you can select list of colums to display in the Task Manager.

    Go to View -> Select Process Page Columns

    and select Command line column to be displayed.

    You should be able to differentiate between different javaw processes by the command line which includes the class path, main class name etc.

    0 讨论(0)
  • 2021-01-26 01:57

    ..how to check whether that application is running or not in the user's machine..

    There's no need to resort to examining processes, an inherently OS specific approach.

    The JNLP API offers the SingleInstanceService which..

    ..allow(s) applications launched under Java Web Start to register themselves as singletons, and to be passed in new parameter sets when user attempts to launch new instances of them.

    Your code will then get to decide whether to update the current app., bring it to the front, or launch a new instance.

    0 讨论(0)
提交回复
热议问题