1

Whenever I want to export a project of mine to a runnable jar it asks for the main class, but the problem is that there is every main class I ever created (and by now deleted a long time ago) in the list blowing the list up like crazy... How do I delete the cache or what ever for this list?

greg-449
  • 106,591
  • 226
  • 99
  • 140
Christian O.
  • 470
  • 1
  • 5
  • 19

1 Answers1

0

If you plan to do this more often then you should automate it.

I recommend creating a script for that. You can generate runnable jars with Ant and Maven alike. It is not a big deal. See this question for Ant using the manifest element of the jar task, or see this question for Maven using the maven-assembly-plugin.

Community
  • 1
  • 1
Peter Kofler
  • 9,058
  • 8
  • 50
  • 79