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

2013-04-24 Thread Stefan Bodewig
On 2013-04-24, Sentinel.czech wrote: > As I have read in discussion thred something changed in zip algorithm. Yes, that's right. > Question is, if there is a way to create "old style" compressed jar. One option is to the compress' antl

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

2013-04-24 Thread Sentinel.czech
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 Creat

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

2013-03-29 Thread Jarek Czekalski
More guesses: - is the jar signed? - do the same thing happen with a "hello world" application jar? - maybe there are differences in configuration of 1.8.4 and 1.9.0, like different jdk path W dniu 2013-03-28 01:27, Marc Benstein pisze: Howdy, Java 5 fails to execute jars created with Ant 1.9

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

2013-03-28 Thread Jarek Czekalski
Marc, could you take 2 jars, one generated with 1.8.4 and one generated with 1.9 and expand them to neighbouring directories? Then do diff -r with them. Possibly expanding with jar command coming from java 5. I expect either a difference in contents or difference in filenames. Maybe there are

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

2013-03-28 Thread Marc Benstein
t file? > > > > > > > > > > -Original Message- > From: Marc Benstein [mailto:mbenst...@ultramain.com] > Sent: Thursday, March 28, 2013 9:59 AM > To: user@ant.apache.org > Subject: Re: Java 5 fails to run jar files created with Ant 1.9.

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

2013-03-28 Thread Welsh, Armand
: Thursday, March 28, 2013 9:59 AM To: user@ant.apache.org Subject: Re: Java 5 fails to run jar files created with Ant 1.9.0 On Thu, 2013-03-28 at 05:59 -0600, Stefan Bodewig wrote: > On 2013-03-28, Marc Benstein wrote: > > > Java 5 fails to execute jars created with Ant 1.9.0. Java

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

2013-03-28 Thread Marc Benstein
On Thu, 2013-03-28 at 05:59 -0600, Stefan Bodewig wrote: > On 2013-03-28, Marc Benstein wrote: > > > Java 5 fails to execute jars created with Ant 1.9.0. Java 6 and 7 work > > fine to execute the jar. > > I assume creating the same jar with Ant 1.8.x works just fne for you. Correct. > > Ant 1.9.0

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

2013-03-28 Thread Stefan Bodewig
On 2013-03-28, Marc Benstein wrote: > Java 5 fails to execute jars created with Ant 1.9.0. Java 6 and 7 work > fine to execute the jar. I assume creating the same jar with Ant 1.8.x works just fne for you. Ant 1.9.0 ships with a zip package that has some enhancements over the one in 1.8.x - Zip6

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

2013-03-27 Thread Vimil Saju
could be completely mistaken though. From: Joe Attardi To: Ant Users List Sent: Wednesday, March 27, 2013 8:07 PM Subject: Re: Java 5 fails to run jar files created with Ant 1.9.0 It appears to be nothing obvious, then :) Sorry I wasn't much help. O

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

2013-03-27 Thread Joe Attardi
It appears to be nothing obvious, then :) Sorry I wasn't much help. On Wed, Mar 27, 2013 at 11:03 PM, Marc Benstein wrote: > Joe, there is nothing screwy in the manifest. As I said, the jar works > fine from Java 6 and 7. Also note, the exact build is used with Ant > 1.8.4 and everything works g

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

2013-03-27 Thread Marc Benstein
Joe, there is nothing screwy in the manifest. As I said, the jar works fine from Java 6 and 7. Also note, the exact build is used with Ant 1.8.4 and everything works great there. Anyways, here's the manifest. Manifest-Version: 1.0 Ant-Version: Apache Ant 1.9.0 Created-By: 1.7.0_17-b02 (Oracle Corp

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

2013-03-27 Thread Joe Attardi
Interesting. Is the manifest intact? Maybe post the contents of your MANIFEST.MF from the generated JAR file, and perhaps there will be something screwy in there. On Wed, Mar 27, 2013 at 10:43 PM, Marc Benstein wrote: > Joe, there is not an error when I try jar tf myjar.jar. I see the > contents

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

2013-03-27 Thread Marc Benstein
Joe, there is not an error when I try jar tf myjar.jar. I see the contents just fine. On Wed, 2013-03-27 at 19:56 -0600, Joe Attardi wrote: > Is the error just when you try to execute the JAR? What if you simply try > to list its contents (jar tf myjar.jar)? > > > On Wed, Mar 27, 2013 at 8:27 PM,

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

2013-03-27 Thread Joe Attardi
Is the error just when you try to execute the JAR? What if you simply try to list its contents (jar tf myjar.jar)? On Wed, Mar 27, 2013 at 8:27 PM, Marc Benstein wrote: > Howdy, > > Java 5 fails to execute jars created with Ant 1.9.0. Java 6 and 7 work > fine to execute the jar. > > The message

Java 5 fails to run jar files created with Ant 1.9.0

2013-03-27 Thread Marc Benstein
Howdy, Java 5 fails to execute jars created with Ant 1.9.0. Java 6 and 7 work fine to execute the jar. The message I am seeing in Java 5 is "Invalid or corrupt jarfile" I have tried my target JVM of 1.5.0_06 on Windows 7 and Linux and I get the same output. I have also tried 1.5.0_22 with the sa