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

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

    IMO the best option is to choose one of the many open source launchers. They all provide a nicer deployment container than java.exe and a batch file.

    I've compiled a list of them after a brief search on google (in no particular order and may not be exhaustive):

    • NSIS
    • Janel (dead link)
    • JSmooth
    • Launch4J
    • WinRun4J

    (full disclosure: i work on winrun4j)

提交回复
热议问题