Kill process tree, please help.

I have a java program which is used to execute a user defined command. This comand can be run on Linux, Windows & Unix.

If I execute a .bat file, then issue a "destroy" on it, it kills the batch script that was running, but leaves the children running.

I need to find a "generic" way in which to kill the process tree.

I really think this is an area in which java needs to improve.I do understand not all OS'es have the concept of process id.. but in most cases they do!! Is there any community out there in which develops a bolt-on library with extends teh "Process" & "Runtime" functionality ?

I've done a lot of searching and there are quite a few people that are having the same problem.

Is my Only option extending Process and using JNI?

[790 byte] By [Leroya] at [2007-10-2 12:51:47]
# 1

read your post. I wish i could help though, I see nobody else has posted.. I havn't tried it yet, but if there's an error in your code, maybe try to software i'm downloading this very minute! it's called "jtest". it supposedly scans java files and automaticly fixes errors. 500+ rules programmed in, 200+ fixes programmed in. I hope its what you're looking for!

thesmileyknighta at 2007-7-13 10:04:30 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2
silly me.. always forget to put the link.. http://www.parasoft.com/jsp/home.jsp
thesmileyknighta at 2007-7-13 10:04:30 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 3
Thanks for the help, but this issue is not with an error in my code. It is relating to killing a process tree in Unix/Windows.
Leroya at 2007-7-13 10:04:30 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...