Stop Eclipse/Java running multiple instances

arnoapp picture arnoapp · Dec 8, 2012 · Viewed 8.3k times · Source

I'm not a java expert or a eclipse expert. Currently I'm working on a project and i need to debug/test often. I use the eclipse run Button for it. But when I don't close the Program eclipse/java opens it again(second window). It's an gui app with swing jframe.

Is there a function in eclipse or java to terminate the previous build and opens the new one when you run it?

Answer

Robert Mikes picture Robert Mikes · Jul 14, 2017

In Eclipse Neon go to Window -> Preferences -> Run/Debug -> Launching and in the Launch Operation section check:

[X] Terminate and Relaunch while launching

Terminate and Relaunch while launching