如何在Eclipse中导出Java项目时清除旧的类?

huangapple go评论100阅读模式
英文:

How do I clear out old classes when exporting a java project in Eclipse?

问题

我正在使用一个名为Eclipse的集成开发环境编写Java程序。当我要导出该程序时,选择“可运行的JAR文件”,然后点击“下一步”,在导出窗口顶部有一个下拉输入框,标有“启动配置”,如下图所示。

如何在Eclipse中导出Java项目时清除旧的类?

当我点击这个下拉框以选择正确的主类时,会弹出一个主类列表,其中包括许多来自先前已删除项目的旧主类,如下图所示:

如何在Eclipse中导出Java项目时清除旧的类?

是否有一种方法可以配置Eclipse,使其仅显示当前项目中使用的主类列表,而不是当前使用和旧的主类混合在一起?

英文:

I am writing a java program using an IDE called Eclipse. When I go to export the program, select runnable jar file, and click 'Next', at the top of the exporting window, there is a dropdown input box as seen labelled 'Launch configuration', as seen in this image.

如何在Eclipse中导出Java项目时清除旧的类?

When I click on this to choose the correct main class, a list of Main classes pop up, including a large amount of old main classes from previously deleted projects, as seen here:

如何在Eclipse中导出Java项目时清除旧的类?

Is there a way to configure this so Eclipse only displays a list of the main classes that are being used in current projects, as opposed to a mix of currently used and old main classes?

答案1

得分: 0

选择“Run > Run Configurations”菜单。出现的对话框包含了Eclipse当前拥有的所有“启动配置”。您可以在这里删除它们(或将它们重命名为更有用的名称)。

英文:

Select the 'Run > Run Configurations' menu. The dialog that appears contains all the 'launch configurations' that Eclipse currently has. You can delete them here (or rename them to something more useful).

huangapple
  • 本文由 发表于 2020年8月16日 00:43:08
  • 转载请务必保留本文链接:https://go.coder-hub.com/63428488.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定