MANIFEST.MF 中的 Class-Path 是否只能包含 jar 文件? [英] Does the Class-Path in the MANIFEST.MF can only include jar Files?

查看:27
本文介绍了MANIFEST.MF 中的 Class-Path 是否只能包含 jar 文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在其他目录中包含类文件,而不是主类的目录.

I want to include class files in other directories, not the directory of the main class.

如果我将这些目录放入 MANIFEST.MFClass-Path 属性中,则它不起作用.

If I put these directories into the Class-Path property of MANIFEST.MF it doesn't work.

为什么?除了将这些类打包成一个jar文件,还有什么解决办法吗?

Why? Is there any solution except packing these classes into a jar File?

推荐答案

如此链接中所述,需要尾随斜杠:

A trailing slash would be required as mentioned in this link:

类路径属性

这篇关于MANIFEST.MF 中的 Class-Path 是否只能包含 jar 文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆