Packaging multiple jars in one jar file.

Hi I have an application that is packaged into a jar, but I have a library I would like to pack with it, so that my jar-file contains the other jar inside. I thought using Java indexing (jar -i) would work, but it didn't for me.Any ideas?Thanks.
[267 byte] By [shelziba] at [2007-11-26 15:35:38]
# 1

I extract 3rd party JARs and then include them in my JAR as follows:

jar xf jakarta-oro-2.0.5.jar

jar xf jasperreports-1.2.1.jar

jar xf iReport.jar

jar cmf mainClass Spec Remote.jar *.class org/ net/ it/

The extraction of jakarta... produces the org/ path, jasperreports... produces the net/ path and iReport ... produces the it/ path. All are in my working directory as are my *.class files. I hope this is the answer you need.

hopia at 2007-7-8 21:53:13 > top of Java-index,Desktop,Deploying...