MANIFEST.MF中的Class-Path是否只能包含jar文件? [英] Does the Class-Path in the MANIFEST.MF can only include jar Files?
本文介绍了MANIFEST.MF中的Class-Path是否只能包含jar文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在其他目录中包含类文件,而不是主类的目录。
I want to include class files in other directories, not the directory of the main class.
如果我将这些目录放入类中-Path
属性 MANIFEST.MF
它不起作用。
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屋!
查看全文