停止Eclipse / Java运行多个实例 [英] Stop Eclipse/Java running multiple instances
问题描述
目前我正在开发一个项目,我需要经常调试/测试。我使用eclipse运行按钮。但是当我不关闭程序eclipse / java再次打开它(第二个窗口)。
这是一个具有swing jframe的gui应用程序。
eclipse或java中是否有一个函数来终止以前的构建,并在运行它时打开新的构建?
尝试以下方式:
-
如果您处于调试的角度,您可以右键单击运行实例,然后单击终止和重新启动(您可以从窗口 - >首选项 - >常规 - >键绑定快捷方式)这样做很好对我来说
-
此链接表示您可以在任何预设中绑定终止和重新启动。你可以尝试一下,但是对于我来说也是一样的。
-
使用这个插件 https://bitbucket.org/mantis78/relaunch-plugin (未尝试)。
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?
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).
这篇关于停止Eclipse / Java运行多个实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!