views:

546

answers:

1

How do I create a jar that incorporates the lib folder so I can email a single jar. As it is if I don't include the lib folder and the jar folder the jar will not work.

I would like to add the lib folder to the main jar so I only need to send someone a single jar.

A: 

I found this article on using the Ant jar task to include other files in a jar:

Ant Jar task actually allows you to include multiple zipfileset as sub-elements. You can use zipfileset to include contents of other jar (and zip files) within your (big) jar file.

If that doesn't work, you also might be able to use the zip task to zip up the folder and jar.

Michael Myers