You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Sentinel.czech" <se...@gmail.com> on 2013/04/24 12:03:43 UTC

Re: Java 5 fails to run jar files created with Ant 1.9.0

I came accross with the same problem:
- ubuntu, java 1.5.0_22, ant 1.8.2
- suse, java 1.5.0_08, ant 1.9.0
(yes not the identical environments but.. in 1.8.x it was working..)

Manifest is genereated in jar taks.

there were following differences:
- Manifest: only content of Ant-Version: , and Created-By:  (that could not
make problem)
- differences of jar files length,  jar from 1.8  has 6.2kB, jar from 1.9
has 6.3kB,  --> i thing this shows to different compressing.
and if I compare displayed content with kdiff3, it is different in some
parts.

As I have read in discussion thred something changed in zip algorithm. 
Question is, if there is a way to create "old style" compressed jar.

Regards
Vaclav





--
View this message in context: http://ant.1045680.n5.nabble.com/Java-5-fails-to-run-jar-files-created-with-Ant-1-9-0-tp5713992p5714085.html
Sent from the Ant - Users mailing list archive at Nabble.com.

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


Re: Java 5 fails to run jar files created with Ant 1.9.0

Posted by Stefan Bodewig <bo...@apache.org>.
On 2013-04-24, Sentinel.czech wrote:

> As I have read in discussion thred something changed in zip algorithm.

Yes, that's right.

<https://issues.apache.org/bugzilla/show_bug.cgi?id=54762>

> Question is, if there is a way to create "old style" compressed jar.

One option is to the compress' antlib's zip task which already has the
zip64Mode attribute that you can set to "never".  Other than that the
only idea I'd have was running Java's own "jar" via <exec> or <apply>.

Stefan

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