Change java process description in windows task manager

Is there a command line argument to set the header that the JVM reports to Windows Task Manager? All my java processes are displayed only as javaw.exe with a description of the Java (TM) Platform SE binary. It would be great if I could set some -param = "This eclipse", for example. so that I can easily tell them apart. This would prevent me from killing my IDE often instead of, for example, tomcat.

+6
source share
2 answers

You can crack the JVM binary, or you can implement a small binary application to invoke the JVM, not a batch file; other than that there isn’t a really clean java way to do this!

+3
source

The process in the description column of the Windows task manager is taken from the product name in the version resource, which is statically compiled into an executable file. The executable cannot set this description as runtime.

You only want to create a native shell executable that creates a version resource with a custom name.

exe4j does this for example. Disclaimer: My company is developing exe4j.

+1
source

All Articles