简体   繁体   中英

How do I clear out old classes when exporting a java project in 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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM