Search code examples
javajarclasspathmanifest

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.

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


Solution

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

    Class-Path Attribute