I'm developing a small server application that uses an embedded jetty web server. The service binds to a TCP port and runs in the background. Since the application does not finish (it's a service) I have to terminate the process manually before I can re-run it (for example because the TCP port is in use by the current process).
Is it possible in Eclipse to terminate the current process automatically just before I relaunch it?
Eclipse Oxygen added the terminate and relaunch feature.
There are 2 possible approaches:
Press Shift while clicking on the Run button.
Go to Window > Preferences > Run/Debug > Launching > check Terminate and Relaunch while launching (Press 'Shift' to toggle during launch from menu or toolbar) > Apply and Close > run the application

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With