Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 88355 invoked from network); 18 Jun 2008 11:45:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Jun 2008 11:45:59 -0000 Received: (qmail 14778 invoked by uid 500); 18 Jun 2008 11:45:56 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 14749 invoked by uid 500); 18 Jun 2008 11:45:56 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 14738 invoked by uid 99); 18 Jun 2008 11:45:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jun 2008 04:45:56 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [62.154.176.138] (HELO icon040.icongmbh.de) (62.154.176.138) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jun 2008 11:45:07 +0000 Received: from icsrv02.icongmbh.de (unknown [192.168.195.2]) by icon040.icongmbh.de (Postfix) with ESMTP id DD186FF4C for ; Wed, 18 Jun 2008 13:12:12 +0200 (CEST) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C8D134.287E81B8" X-MimeOLE: Produced By Microsoft Exchange V6.5 Subject: AW: unable to execute JAR file Date: Wed, 18 Jun 2008 13:12:09 +0200 Message-ID: <06080D44730F41428BAF2168FA8BDD80020F6FF5@icsrv02.icongmbh.de> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: unable to execute JAR file Thread-Index: AcjRFIQEc8fVC5z6RnSvwXL6DhmtBwAH0jwg References: From: "Knuplesch, Juergen" To: "Ant Users List" X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C8D134.287E81B8 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Use classname attribut instead of MANIFEST: =20 =20 -- J=FCrgen Knuplesch =20 ________________________________ Von: Irfan.Sayed@t-systems.com [mailto:Irfan.Sayed@t-systems.com]=20 Gesendet: Mittwoch, 18. Juni 2008 09:26 An: user@ant.apache.org Betreff: unable to execute JAR file Hi All, =20 I have 10 java files and I have written Ant build.xml to compile and = create JAR file which contains the .class files. Now my requirement is = that I need to execute/install the JAR file but unfortunately I can't do = this as I am getting following error. =20 D:\Irfan\Manvendra Singh java code\Manvendra Singh java code>java -jar = test.jar Failed to load Main-Class manifest attribute from test.jar =20 D:\Irfan\Manvendra Singh java code\Manvendra Singh java code> =20 Please find the attached java code and build script. =20 Please help =20 Regards Irfan. =20 ------_=_NextPart_001_01C8D134.287E81B8--