如何更改Java应用程序的进程名称

发布于 2024-11-05 07:49:27 字数 214 浏览 4 评论 0原文

执行 Java 应用程序时,为其指定的进程名称通常是 java.exe 或 javaw.exe。但是我怎样才能让它通过 window.app 中我的应用程序的名称来调用呢? 我无法使用 http://launch4j.sourceforge.net/ 因为我想在服务器上运行这个 jar 。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

涙—继续流 2024-11-12 07:49:27

使用 jsmooth 制作 exe,为您提供创建单独进程的选项

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

落日海湾 2024-11-12 07:49:27

将您的 java.exe 复制为 customName.exe(并将其放在 java.exe 所在的同一位置)并以

customName com.something.something.MyClass
运行您的程序
而不是
java com.something.something.MyClass

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文