I have an external Windows.exe, which is actually a Java application. Running .exe launches javaw.exe, which in turn launches this Java application.
I did not write this application and did not have access to it through the API. However, I need to be able to kill him. So right now I'm just killing the Windows javaw.exe process, which is great for a test machine that runs only this Java application, but if I need finer granularity, I can't do it right now.
My search queries gave suggestions like the Sysinternal Process Explorer or the jps command in the JDK, but on the target systems for which I intend to provide a script, neither the JDK nor the Sysinternal Process Explorer can work.
Is there any other way that does not require an external tool? Is there a switch or command line parameter in javaw.exe that lists Java processes? Is there a jre version of jps?
Thank.
source
share