So I've run into an interesting problem, where I made a program in java that seems to have crashed once. I don't know the exact conditions that caused it to crash (since it seemingly stopped logging for that period of time). However it is being called via a batch file (that runs:
java -jar MyProg.jar
)
With that said, when the program failed to execute properly (despite some amount of safety nets in place) it stopped running when it should have. Is there some way that I can check to see if user x is running java.exe, and if they are, do a:
taskkill /IM java.exe /f
Before I try to run my program or something similar? Thanks.