Thanks for your reply. What I mean is that i would like to kill one java process in a non responding window, for example if my survival server had stopped responding then so would the screen that it's run from and I need to know how to kill that single java process without access to the screen.
Edit: sudo pkill java works quite nicely but it would be even better if it can target one process