If a user executes foo.exe on his computer, is there a way to terminate foo.exe using a Java program?
Edit: To clear things up, I am talking about a process that was not created by the Java app.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Looks like you are on Windows .
The command to kill a process is:
taskillortskilldepending your Windows version .tskill yourprocessnameexecuted by java