I have been trying to use the JNI so I can call the Win32 API:'TerminateProcess'.But I was having problems getting windows handles through Java.