How do I package a JavaMail application into a single jar file along with the mail.jar and activation.jar?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Glenn_Wiens
Posted On:   Monday, November 11, 2002 02:36 PM

I would like to create a single jar file which contains my JavaMail application classes as well as the requisite mail.jar and activation.jar. Can this be done? Does it require un-jarring the mail and activation jar files first? What about manifest files?


Thanks.

Re: How do I package a JavaMail application into a single jar file along with the mail.jar and activation.jar?

Posted By:   Jens_Dibbern  
Posted On:   Tuesday, March 4, 2003 11:26 AM

I would try to add the two jar files to your own jar as they are as well as adding them to your manifest file classpath setting. If your application is started, try to load any one class of each jar file. If you catch an exception, just extract these jars, write them to your hard disk and display a message like "Application setup completed. Please start again."

Good luck and tell me how it works.

Jens
About | Sitemap | Contact