Originally posted by: nagger
If you use: ps -f
You can find out how the processes are related to each other via the PPID column = parent PID.
So find out all the children of your Java program and then kill them too.
If you write a shell script to do this be very careful while testing it :-)