« Return to Thread: Manifest.MF - classpath is in wrong format when generated programmatically.

Re: Manifest.MF - classpath is in wrong format when generated programmatically.

by Stefan Bodewig :: Rate this Message:

Reply to Author | View in Thread

On 2009-06-29, Garima Bathla <garima.bathla@...> wrote:

> the problem with that logic though is that java -jar command ignores
> class-path which contains more than one space character

> so e.g.

> Class-Path: aaa.jar ssssssssssssss ..(till 71 characters)
>   bbb.jar


> where s - space character till 71 characters

> This is invalid class-path to java -jar command and it is ignored.

This is simply not true.
<http://ant.apache.org/faq.html#mangled-manifest>

If your java -jar really ignored the Class-Path created by Ant it
would be violating the jar specification.  Any Java implementation I
have tried myself does support Class-Path entries as formatted by Ant.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...

 « Return to Thread: Manifest.MF - classpath is in wrong format when generated programmatically.