Does that help You can use the jps utility that is included in the JRE 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%
How do I find/list a file or directory with specific name inside a directory and its subdirectories in Java?