Use TASKLIST and TASKKILL : Good web site on this http://commandwindows.com/taskkill.htm
(F)orce Kill running processes for ImageName of java.exe taskkill.exe /F /IM java.exe
NOTE: Wildcard ‘*’ for the /IM switch is accepted only with filters, use /FI taskkill /F /FI “IMAGENAME eq note*”
Find all running Java processes command line tasklist /FI “IMAGENAME eq java.exe”
[...]
