简体   繁体   English

MANIFEST.MF 中的 Class-Path 是否只能包含 jar 文件?

[英]Does the Class-Path in the MANIFEST.MF can only include jar Files?

I want to include class files in other directories, not the directory of the main class.我想在其他目录中包含类文件,而不是主类的目录。

If I put these directories into the Class-Path property of MANIFEST.MF it doesn't work.如果我将这些目录放入MANIFEST.MFClass-Path属性中,则它不起作用。

Why?为什么? Is there any solution except packing these classes into a jar File?除了将这些类打包到 jar 文件中,还有其他解决方案吗?

A trailing slash would be required as mentioned in this link:如此链接中所述,需要尾随斜杠:

Class-Path Attribute 类路径属性

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM