[PJUG Javamail] Packaging Java Applications
Aaron Getz
getza1 at gmail.com
Tue Aug 11 21:18:29 UTC 2009
Hey Dan,
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
http://java.sun.com/docs/books/tutorial/deployment/jar/
And here is another document on setting the classpath
http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/classpath.html
I hope that helps out.
Aaron
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.
>
> --
> --Dan
> _______________________________________________
> Web Site - http://www.pjug.org/
> Javamail mailing list
> Javamail at pjug.org
> http://www.pjug.org/mailman/listinfo/javamail
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://javac.com/pipermail/javamail/attachments/20090811/206e66fc/attachment-0002.html>
More information about the Javamail
mailing list