How to rename java.exe/javaw.exe process?

前端 未结 7 1130
故里飘歌
故里飘歌 2020-12-15 22:00

Always when I run java application it will display in Windows Task Manager is java.exe or javaw.exe. How to rename java.exe or javaw.exe process without wrapper by other pro

7条回答
  •  不思量自难忘°
    2020-12-15 22:47

    There are mainly 2 approaches: one is as others described: using Launch4j, WinRun4J to create native Windows launchers.

    Another approach that seems better is to use Apache Procrun to wrap the java application as a Windows service. During the install service process, we can give the process an meaningful name such as OurApp.exe.

    All we need do is rename prunsrv.exe to OurApp.exe and replace every occurrence of prunsrv.exe in our install|start|stop|uninstall service scripts to MyApp.exe.

    See more from Using Apache Procrun to Rename Process Name of a Java Program in Windows

提交回复
热议问题