Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse: Terminate current process before re-running

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?

like image 475
steffen Avatar asked Aug 22 '26 18:08

steffen


1 Answers

Eclipse Oxygen (4.7)

Eclipse Oxygen added the terminate and relaunch feature.

There are 2 possible approaches:

  1. Press Shift while clicking on the Run button.

  2. 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

    Run/Debug > Launching > Terminate and Relaunch

like image 160
ROMANIA_engineer Avatar answered Aug 25 '26 07:08

ROMANIA_engineer