How to make your java application restarts itself [duplicate]
This question already has an answer here: How can I restart a Java application? 13 answers I want to implement reset feature in my application which cleans up some directories, copies files etc. then in order to complete the process I need to restart it. How to make application reruns itself? I think opening second instance and closing this one would be enough, altough it is not real restart. My application's core is class extending JFrame but there is lot of static blocks which read class's extensions when the program is executed. I need to restart programatically my application so all of the