Points To Remember You cannot destroy or terminate the current process not even forcefully. You can destroy a process by using the methods destroy() or forcefully using destroyForcibly() . Read More Java 9 Feature List all processes running on the OS Get the information of the current process Start a new Process and get its Process Id How to get Process Information from Process Id Destroy a running process Destroy a Process There are two methods in interface ProcessHandle that can be used to destroy a process. destroy() - to destroy a process noramally destroyForcibly() - to destroy a process forcefully. However the process may not be terminatted instantly since operating system access controls may prevent the process from being killed thus resulting in case where isAlive() method may return true for a brief period after destroyForcibly() is called. In the example below we will first create a process and then kill it forcefully. import java.io.IOException; import java.lang.Pro...