Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Adding multiple jars in manifest

838342Feb 10 2011 — edited Feb 11 2011
Hello 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 11 2011
Added on Feb 10 2011
4 comments
1,812 views