How to find the process id of a running Java process on Windows? And how to kill the process alone? How to find the process id of a running Java process on Windows? And how to kill the process alone? windows windows

How to find the process id of a running Java process on Windows? And how to kill the process alone?


You can use the jps utility that is included in the JDK to find the process id of a Java process. The output will show you the name of the executable JAR file or the name of the main class.

Then use the Windows task manager to terminate the process. If you want to do it on the command line, use

TASKKILL /PID %PID%


You can also find the PID of a java program with the task manager. You enable the PID and Command Line columns View -> Select Columns and are then able to find the right process.

Your result will be something like this :enter image description here


After setting the path of your jdk use JPS.Then You can eaisly kill it by Task Manager
JPS will give you all java processes