kill a java program
843798Jan 10 2006 — edited Feb 7 2006Hi everybody,
I have a java application (which wasn't done by me), that often goes into a starvation situation, i.e., the application is expecting an situation that will never occur (By the way it is an acknowledge).
I've the chance to detect this trought the log file. So my very first idea was to do a script (a kind of Watch Dog), that would kill the app and then restart it again.
The problem is how can I do this if I have another java application which I don't want to disturbe, and for this reason can't simply kill the java process in windows task manager.
Is there any kill command in JRE or JDK to call from the script?
Must I have to create a java program? Which commands should I use to cath the process and kill it?
Thank you