Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

kill a java program

843798Jan 10 2006 — edited Feb 7 2006
Hi 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 7 2006
Added on Jan 10 2006
4 comments
263 views