unable to kill a process when executing jar file using taskkill
===

I have an exe triggered from within a java swing application . I  am able to kill the exe using "taskkill /PID ProcessID " when running the application from ECLIPSE IDE . But when i try to run the jar file for the swing application through a batch file , the exe doesnt get terminated porbably because I am unable to obatin the process ID. I am using windows XP 32 bit.Any help will be greatly appreciated

Thanks and regards
Arun Raj 