Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 93237 invoked from network); 1 Feb 2005 17:37:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Feb 2005 17:37:00 -0000 Received: (qmail 37702 invoked by uid 500); 1 Feb 2005 17:36:53 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 37649 invoked by uid 500); 1 Feb 2005 17:36:53 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 37633 invoked by uid 99); 1 Feb 2005 17:36:52 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of pc.greenus@gmail.com designates 64.233.184.204 as permitted sender) Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.204) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 01 Feb 2005 09:36:51 -0800 Received: by wproxy.gmail.com with SMTP id 69so1027594wri for ; Tue, 01 Feb 2005 09:36:46 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=djNI1hojX7z+ebCMN8PY40KIGGuxw26vkgmDzujKOPY/wCBQbEKy+G/xCmYR/FnNQ5ePUhqxSU2RSFgDSFdbJ8dGCMbto06G1Cnc19YuWMjk22VpbXfSZyQP0Y/W7cZNr+1MEE3ollqC3/GH2XjS6iEyh7SSd23OSEWxcMcjTCc= Received: by 10.54.4.12 with SMTP id 12mr27616wrd; Tue, 01 Feb 2005 09:30:06 -0800 (PST) Received: by 10.54.27.61 with HTTP; Tue, 1 Feb 2005 09:30:06 -0800 (PST) Message-ID: <45b72a5705020109301cc057b3@mail.gmail.com> Date: Tue, 1 Feb 2005 17:30:06 +0000 From: Eric Rotick Reply-To: Eric Rotick To: Ant Users List Subject: Creation of an executable jar problem Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I've created an executable jar. When I run it with java -jar myjar.jar I get the NoClassDefFoundError: error. I've looked in the list archives and there are several posts about ant not creating an executable jar correctly but none of these come to any real conclusion as to why. I've extracted the jar and everything looks OK. I then created a new jar from the command line with the extracted contents and this works. One other thing is that the sizes of the two jars are different. If a do a jar tvf on each of them, the contents are exactly the same size. I'm not creating a jarindex on either of them and I make sure that both are compressed or both are not. When compressed the difference is about 100 bytes and when not compressed the difference is 8 bytes. Any ideas. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org