I don't think it's possible to kill a process by it's path, but you can always kill it by either it's process name or id.
Here's what I use to kill a process, e.g. firefox.exe.
Create a VB script as follows,
sub killProcess(strProcessName)
set colProcesses = GetObject("winmgmts:\\.\root\cimv2").ExecQuery("Select * from Win32_Process Where Name='" & strProcessName & "'")
if colProcesses.count <> 0 then
for each objProcess in colProcesses
objProcess.Terminate()
next
end if
end sub
killProcess "firefox.exe"
Now in order to run the above script via Java, use the Process API as follows,
Process pr = Runtime.getRuntime().exec(path_to_vbscript_file, null, null);
pr.waitFor();