ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Benstein <MBenst...@ultramain.com>
Subject Re: Java 5 fails to run jar files created with Ant 1.9.0
Date Thu, 28 Mar 2013 03:03:04 GMT
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 Corporation)
Implementation-Vendor: Ultramain Systems, Inc.
Implementation-Title: blb_core-trunk
Implementation-Version: trunk
Package-Version: B.8
Build-Host: usi-3862l.ultramain.com
Java-Target-Version: 5
Main-Class: com.ultramain.util.USIJarLoader
Class-Path: lib/winpack-3.6.jar lib/jniwrap-3.6.1.jar lib/dom4j-1.6.1.
 jar lib/jaxen-1.1-beta-6.jar




On Wed, 2013-03-27 at 20:47 -0600, Joe Attardi wrote:
> 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 <MBenstein@ultramain.com>wrote:
>
> > 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, Marc Benstein <MBenstein@ultramain.com
> > >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 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 same results.
> > > >
> > > > Any help would be appreciated.
> > > >
> > > > Thanks
> > > > --
> > > > Marc Benstein
> > > >
> > > > Ultramain Systems, Inc.
> > > > 8100 Lang Avenue NE
> > > > Albuquerque, NM 87109
> > > > USA
> > > >
> > > > TEL 505.828.9000
> > > > FAX 505.823.1841
> > > > www.ultramain.com
> > > >
> > > > Confidentiality Notice: This email message and any files transmitted
> > with
> > > > it may contain confidential information intended only for the
> > person(s) to
> > > > whom this email is addressed. If you have received this email in error,
> > > > please notify the sender immediately by phone or email and destroy the
> > > > original message without making a copy. Thank you.
> > > >
> > >
> > >
> > >
> >
> > --
> > Marc Benstein
> >
> > Confidentiality Notice: This email message and any files transmitted with
> > it may contain confidential information intended only for the person(s) to
> > whom this email is addressed. If you have received this email in error,
> > please notify the sender immediately by phone or email and destroy the
> > original message without making a copy. Thank you.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> >
>
>
>

--
Marc Benstein

Confidentiality Notice: This email message and any files transmitted with it may contain confidential
information intended only for the person(s) to whom this email is addressed. If you have received
this email in error, please notify the sender immediately by phone or email and destroy the
original message without making a copy. Thank you.
Mime
View raw message