如何在manifest中指定jar文件?

发布于 2024-08-18 11:35:51 字数 75 浏览 2 评论 0原文

我创建了一个 mail.jar 文件和 mywar.war 文件。我需要在manifest.mf中设置什么来使用mail.jar作为库?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

ぺ禁宫浮华殁 2024-08-25 11:35:51

您不使用 MANIFEST.MF 将 jar 放入 war 文件的类路径中。你只需将它放入war文件中的WEB-INF/lib中即可。

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.

偷得浮生 2024-08-25 11:35:51

类路径:../relative/path_to_/mail.jar

编辑:
注意:相对路径应参考程序启动的目录。

Class-Path: ../relative/path_to_/mail.jar

EDIT:
Note: The relative path should be with reference from the directory where your program is starting.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文