I am trying to create a JAR with a Class-Path element in MANIFEST.MF . I get class path elements from an external source (Maven in my case). Since the paths are absolute and out of my control, they may contain strange characters, such as spaces.
Since spaces are used to separate elements in the class path, this path does not work:
Class-Path: C:\User\Some Odd Name\project\target\project-1.0.0.jar
How can I avoid / encode odd characters / spaces in the elements of the classpath in the JAR manifest?
source share