Adding multiple jars in manifest
838342Feb 10 2011 — edited Feb 11 2011Hello All,
I have created a jar file for a main class by below.
jar cmf mymanifest.txt a.jar packageA
manifest.txt contains entry for Main-Class : ABC
Now, my Main class is dependent on around 20 jar files.
if I modify manifest.txt with Class-Path: packageA/a.jar
it finds a specific jar. But, if I add 20 jars in this way, it gives error about invalid header.
then I tried putting Class-Path: packageA/*.jar
then also it didn't work.
I also tried putting Class-Path: packageA/
But this also didn't work.
Coudl anyone please let me know how to get this done. It would be really helpful for me.
Looking forward to the reply.