开发者

how to change the process name of a Java application

开发者 https://www.devze.com 2023-03-02 18:37 出处:网络
when executing a Java application the process name given to it is usually java.exe or javaw.exe. But how can I make it be called by the name of my 开发者_如何学编程application in window.

when executing a Java application the process name given to it is usually java.exe or javaw.exe. But how can I make it be called by the name of my 开发者_如何学编程application in window. I can't use http://launch4j.sourceforge.net/ because I want to run this jar on server.


make exe with jsmooth , that provide you option to create separate process


Copy your java.exe as customName.exe (and put it in the same location where your java.exe is) and run your program as

customName com.something.something.MyClass
instead of
java com.something.something.MyClass

0

精彩评论

暂无评论...
验证码 换一张
取 消