title: How to Kill Java Process in Windows, WITHOUT killing javaw.exe?
body: <p>I have an external Windows .exe that is actually Java application: Running the .exe starts javaw.exe, which in turn runs that Java application.</p>
  
  <p>I didn't write that application and have no access to it through an API. I need to be able to kill it, however. So right now I just kill the Windows process javaw.exe, which is fine for a test machine running only that Java application but if I need finer granularity, I cannot currently do so.</p>
  
  <p>My searches yielded suggestions such as <a href="http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx" rel="noreferrer">Sysinternal's Process Explorer</a> or the jps command in the JDK, but in the target systems for which I intend to provide the script, neither JDK nor Sysinternal's Process Explorer can be running.</p>
  
  <p>Is there any other way that doesn't require an external tool? Does javaw.exe have a switch or command line option that lists Java processes? Is there a JRE version of jps?</p>
  
  <p>Thanks.</p>