开发者

How to specify the jar file in manifest?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜