So, I have started a process in java using exec method in Runtime class. Now, how I invoked this is as follows.
Runtime r=Runtime.getRuntime();
Process p=null;
String s="E:\\Softwares\\fiddler4setup.exe";
p=r.exec("cmd /c"+s);
Now, when I trying to destroy the process using p.destroy() method. Fiddler4setup.exe is still running. I have been searching ways to close this for like a week. Even here, there is no particular correct answer for this sort of problem. Please kindly help me with this.
Also, running the file directly is not working as it's displaying some 704 error I guess. Then, I saw this solution of using "cmd /c".
Thank you.