开发者

How to specify the jar file in manifest?

开发者 https://www.devze.com 2022-12-17 13:35 出处:网络
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

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

精彩评论

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

关注公众号