如何在 Eclipse 中删除启动配置历史记录?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/15322663/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to remove launch configuration histories in eclipse?
提问by miaowhehe
Right click an arbitrary existing project in Package Explore, choose "export..." - "Java" - "Runnable JAR file", I find all the old projects in the "launch configuration" list. Those projects have already been removed from the disk, and are not visible in the Package Explore. How can I remove them from that list? I'm using eclipse indigo.
在 Package Explorer 中右键单击任意现有项目,选择“导出...”-“Java”-“可运行 JAR 文件”,我在“启动配置”列表中找到所有旧项目。这些项目已从磁盘中删除,并且在 Package Explore 中不可见。如何从该列表中删除它们?我正在使用日食靛蓝。
采纳答案by benzonico
Under Window...Preferences...Run/Debug...Launching...Launch Configurations, you can activate and deactivate some filters that restrict what is shown in Run...Run Configurations. I think it is what you are looking for.
在 Window...Preferences...Run/Debug...Launching...Launch Configurations 下,您可以激活和停用一些过滤器来限制 Run...Run Configurations 中显示的内容。我认为这就是你要找的。
回答by Felipe Martins Melo
This question seems to be well answered here
, however, to make changes I have simply deleted every undesirable launch configuration from the below path.
这个问题似乎得到了很好的回答here
,但是,为了进行更改,我只是从以下路径中删除了所有不需要的启动配置。
${WORKSPACE}/.metadata/.plugins/org.eclipse.debug.core/.launches/Delete all the .class LAUNCH Files
After deleting the files, it is necessary to restart Eclipse for the changes to take effect.
删除文件后,需要重新启动 Eclipse 才能使更改生效。
回答by como
Eclipse menu -> Run -> Run Configurations... pops up the list of all viable run configurations, grouped by type. You are looking for those under Java Application. Any of these are deletable. Delete them and they will no longer show up in Run/Launch configuration lists.
Eclipse 菜单 -> Run -> Run Configurations... 弹出所有可行的运行配置列表,按类型分组。您正在寻找 Java 应用程序下的那些。其中任何一个都可以删除。删除它们,它们将不再显示在运行/启动配置列表中。
回答by sarath
- Go to Run->Run configuration. Delete the existing saved projects under the Java Application.
- Run the class, having main method from eclipse. It will be automatically set.
- create runnable Jar.
- 转到运行->运行配置。删除 Java 应用程序下现有的已保存项目。
- 运行该类,具有来自 eclipse 的 main 方法。它会自动设置。
- 创建可运行的 Jar。
回答by Suvendu Ghosh
Go to Run->Run configuration. Delete the existing saved projects under the Java Application.
转到运行->运行配置。删除 Java 应用程序下现有的已保存项目。
Then run the class, having main method from eclipse. It will be automatically set.
然后运行该类,具有来自 eclipse 的 main 方法。它会自动设置。
Now create runnable Jar.
现在创建可运行的 Jar。