Eclipse Java EE: when starting the application, stop the old executable instance

I am looking for a way in Eclipse to stop all running instances of a Java application when you click run to ensure that only one instance of the program starts at a time.

I am programming a server application, and it is obvious that you can only run once, just socket bindings, etc.

Of course, you can stop it manually each time, but since I also have client applications, I have to change the console each time and click the red stop icon. This slows down the development process.

+3
source share

Source: https://habr.com/ru/post/1787274/


All Articles