停止Eclipse / Java运行多个实例 [英] Stop Eclipse/Java running multiple instances

查看:635
本文介绍了停止Eclipse / Java运行多个实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不是java专家或eclipse专家。
目前我正在开发一个项目,我需要经常调试/测试。我使用eclipse运行按钮。但是当我不关闭程序eclipse / java再次打开它(第二个窗口)。
这是一个具有swing jframe的gui应用程序。



eclipse或java中是否有一个函数来终止以前的构建,并在运行它时打开新的构建?

解决方案

尝试以下方式:


  1. 如果您处于调试的角度,您可以右键单击运行实例,然后单击终止和重新启动(您可以从窗口 - >首选项 - >常规 - >键绑定快捷方式)这样做很好对我来说


  2. 此链接表示您可以在任何预设中绑定终止和重新启动。你可以尝试一下,但是对于我来说也是一样的。


  3. 使用这个插件 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:

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

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

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

这篇关于停止Eclipse / Java运行多个实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆