facebook

Building executable jars

  1. MyEclipse IDE
  2.  > 
  3. Comments
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #211058 Reply

    Dave Stubbs
    Member

    I would like to have the ability to create an executable jar file. I know eclipse has the option to specify the executable class when building a jar, but the resulting jar file only contains the class files in the project being exported, it does not include classes from related projects that are needed to make single distributable jar file.

    The reason for wanting this is because we have taken over a project that was previously maintained in JBuilder and this was something it has the ability to do (and the customer wants it that way).

    So to summarise,
    1. Create jar (exists already)
    2. Select executable class (exists already)
    3. Include all referenced classes in other projects (new)

    I realise this probably goes more to the core of eclipse than to any J2EE related function, but if there is anything that could be done, or better yet if anyone knows of another plug in that gives this function, please let me know.

    #211061 Reply

    Riyad Kalla
    Member

    Zenative,
    I’m moving this to Random Thoughts because you are correct this is out of the realm of J2EE development BUT users that know anything about a plugin that may help are encouraged to reply (I personally don’t know of one, but a custom Ant script might do the trick).

    #211144 Reply

    There is an Ant Task named GenJar that does that.

    The URL is http://genjar.sourceforge.net/

    Saludos

    #211151 Reply

    Riyad Kalla
    Member

    Ahh very cool, thanks for the link arico.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Building executable jars

You must be logged in to post in the forum log in