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

后端 未结 6 1038
灰色年华
灰色年华 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:20

    Netbeans and Eclipse both ship with an .exe file that in turns launches a JVM. The exe itaself probably does nothing after launching the VM. You see the NetBeans javaw.exe in the Task Manager also, I suspect.

    So you'll need to write a native exe (using some windows tool) that does a similar thing.

提交回复
热议问题