First, why do you want to kill any of them? If a process is using too many resources you can just get the PID in `top`:
top -n 1
If they need to be restarted on a periodic basis or to react to outside stimuli, use process management:
while true
do
java -jar MyApp.jar &
my_app_pid=$!
while ! whatever_makes_me_think_my_app_should_be_restarted
do
sleep 60
done
kill $my_app_pid
done