How can I catch when somebody kills my application (java, but it is not important) by taskmanager or by taskkill console command?
I understand that I cannot catch t
you can use a second application that will run on the local machine and monitor your main application. when the main application goes down it can do something (e.g restart it, log the event) c