Does the Class-Path in the MANIFEST.MF can only in

2020-02-06 06:18发布

问题:

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.

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

回答1:

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

JAR : MANIFEST.MF Class-Path referencing a directory