Finally, it turned out to be something workable, even though it is a circular path.
The Apache Commons Exec API contains the CommandLauncher class, which returns a java.lang.Process object. Thanks link
Here's a link to get the windows process id from java.lang.Process. It uses JNA libraries.
, , ,
//String killCmd = "taskkill/F/T/PID" + JNAHandler.getPid();