1 Reply Latest reply: May 6, 2010 3:56 AM by 793415 RSS

    How to create runnable JAR in Eclipse

    843804
      I have a project in Eclipse with many classes.

      Whenever I try to create a runnable JAR, the JAR file created always contains all the classes of the project, regardless whether they are really used or not.

      Is it possible to create a runnable JAR in Eclipse, excluding the classes of the project which are not strictly necessary for a given launch configuration?
        • 1. Re: How to create runnable JAR in Eclipse
          793415
          krige wrote:
          I have a project in Eclipse with many classes.
          My condolences on using a build system that apparently has grabbed you by the short & curlies. That can be painful.

          Note that:
          1) Eclipse can use Ant style build.xml files for controlling most aspects of a build (that are worth mentioning).
          2) We provide no support for Eclipse on these groups, but since Ant typically defers to a core set of tools in the SDK, you can usually get away with asking an Ant related question.