Stop Eclipse/Java running multiple instances

eclipse, java, jframe, swing

Solution

Try the following ways:

If you are in debug perspective, you can Right click running instance and click "Terminate and Relaunch" (You can bind short-cut for this from Window -> Preferences -> General -> Keys) This worked out well for me.

This link says you can bind "Terminate & Relaunch" in any prespective. You can give it a try but the same did not work out for me.

Use this plugin https://bitbucket.org/mantis78/relaunch-plugin (Not tried).

Problem

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?

Original source

Related problems