Take the 2-minute tour ×  I am a newbie in cmd, so please allow
me to ask a stupid question: How can we stop a running java
process through windows cmd?  For example, if we start jetty(a
mini web server) with the following cmd:  start javaw -jar
start.jar  How do we find the process and stop it later?
Obviously the following cmd does not work:  stop javaw -jar
start.jar share|improve this question Did you try Ctrl + C or
Ctrl + Break? –  Frank Bollack Apr 15 '10 at 9:00 yes, but can I
build a .bat file to stop it with Ctrl + C or Ctrl + Break? – 
Winston Chen Apr 15 '10 at 9:05 Maybe check the taskkill
command. It has many options for choosing the process to kill:
by process id, by name pattern, by owning user, etc. But I
recommend first looking for a standard, less violent way of
closing the specific application (servers usually have some kind
of "stop" command) –  Eyal Schneider Apr 15 '10 at 9:10 Do you
know the process name? If you do, you can build a .bat file that
uses the taskkill command: microsoft.c