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
  • 109,219
  • 232
  • 102
  • 145
Christian O.
  • 514
  • 1
  • 5
  • 20

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,252
  • 8
  • 51
  • 79