[PJUG Javamail] Packaging Java Applications
Dan Colish
dan at unencrypted.org
Tue Aug 11 18:33:19 EDT 2009
I'm really not that interested in a runable jar, thats pretty easy to
produce within eclipse. I'm trying to properly setup a java project that
uses external libraries and builds correctly without requiring eclipse.
My main concern is the directory structure for the project and any build
files that are required. I have looked at the ant build.xml files, and I
am working on that currently, but that is really complex. Even if I
can't do this without eclipse, I am confident there is a proper way to
do this that does not require an couple hours of setup. I've gotta be
doing something wrong here. The current project is a simple one, but I
would like to understand the correct way to do this for future projects.
--
--Dan
On Tue, Aug 11, 2009 at 03:23:09PM -0700, Kent Spaulding wrote:
> Ant is one means - if all you care about is the executable then use
> eclipse's 'Runnable Jar' feature.
>
> For you project, click File|Export.. and in the treeview select as in
> the attached screenshot. It will allow you choose what to bundle.
>
> If your version of eclipse doesn't do this, there is a plugin called
> FatJar that will (which is where this feature came from)
>
> The resulting jar file is run as:
>
> java -jar myjar.jar <arguments>
>
> --Kent
>
More information about the Javamail
mailing list