I have created a mail.jar file and mywar.war file. What I need to set into the manifest.mf use the mail.开发者_如何学运维jar as a library?
You don't use a MANIFEST.MF to put a jar in the classpath of a war file. You just put it into WEB-INF/lib in the war file.
Class-Path: ../relative/path_to_/mail.jar
EDIT: Note: The relative path should be with reference from the directory where your program is starting.
精彩评论