[PJUG Javamail] Packaging Java Applications
getza1 at gmail.com
Tue Aug 11 21:18:29 UTC 2009
I guess it depends on what you are initially trying to package up. Is
this an Eclipse plugin? If so then you can just highlight the project and
right click and then choose to export it and the PDE builder of Eclipse will
handle the rest.
In the case of a Eclipse plugin you would include the 3rd party lib in the
jar file you create.
If you are just looking to create a jar file that is your source code and
then the consumer of your jar file is responsible for getting the
dependencies needed for using your jar file. If you want to include the
jars along with your jar file then you can classpath the jars in your
manifest file and make sure the user of your jar puts them in the path you
specified or they can create their own classpath.
Here is a good tutorial on jar files from Sun
And here is another document on setting the classpath
I hope that helps out.
On Tue, Aug 11, 2009 at 2:09 PM, Dan Colish <dan at unencrypted.org> wrote:
> So I need to packaage up some source code in an Eclipse project for
> sharing. Normally, I'd just point someone to my git repo, but I have
> included external libraries in my project. I'm now having some trouble
> figuring out how to deal with this. Do I include that jar too? If so how
> does the person run that without extensive setup? Isn't there a simple
> way to include libraries like in C/C++ where I have an include and a
> compat dir, then just link against them in my makefile? I'm new to Java
> packaging so any help is appreciated.
> Web Site - http://www.pjug.org/
> Javamail mailing list
> Javamail at pjug.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Javamail