How can I give my Java application a unique process name?

后端 未结 6 1036
灰色年华
灰色年华 2020-12-01 12:25

I\'ve noticed that when I start Netbeans it shows up in the task manager as netbeans.exe as all my own Java applications show up as java.exe or

6条回答
  •  隐瞒了意图╮
    2020-12-01 13:19

    Not easily. The easiest way (but not nice!) would be to simply copy the java.exe (only 68k on my system, so perhaps practical!)

    If you're worried about identifying which java process is which (e.g. is one consuming memory/CPU etc.), use the standard tool jps to identify the Java processes

提交回复
热议问题