I have a Process object, which i need to terminate at a given point in time. I tried Process.destroy(), but this does not effectively let the process to release the port it was using, due to which i cannot use it. All i need to do is to send a "Ctrl + C" to the 'Process' which already has a shutdown hook written in it, which takes care of releasing any resources.
How can i do this.
I am Using Windows