英文:
How do I clear out old classes when exporting a java project in Eclipse?
问题
我正在使用一个名为Eclipse的集成开发环境编写Java程序。当我要导出该程序时,选择“可运行的JAR文件”,然后点击“下一步”,在导出窗口顶部有一个下拉输入框,标有“启动配置”,如下图所示。
当我点击这个下拉框以选择正确的主类时,会弹出一个主类列表,其中包括许多来自先前已删除项目的旧主类,如下图所示:
是否有一种方法可以配置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.
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:
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).
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论