Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 7256 invoked from network); 14 Oct 2003 05:46:40 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 14 Oct 2003 05:46:40 -0000 Received: (qmail 50204 invoked by uid 500); 14 Oct 2003 05:46:09 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 50165 invoked by uid 500); 14 Oct 2003 05:46:09 -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 50152 invoked from network); 14 Oct 2003 05:46:09 -0000 Received: from unknown (HELO mx2.sonypictures.com) (66.77.63.115) by daedalus.apache.org with SMTP; 14 Oct 2003 05:46:09 -0000 Received: (qmail 887 invoked by uid 0); 14 Oct 2003 05:46:20 -0000 Received: from unknown (HELO spde-mail1.spde.net) (160.33.16.160) by mx2.sonypictures.com with SMTP; 14 Oct 2003 05:46:20 -0000 Received: from sl-mail2.spde.net ([160.33.16.162]) by spde-mail1.spde.net with Microsoft SMTPSVC(5.0.2195.6713); Mon, 13 Oct 2003 22:46:20 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: How to run a .jar created by ant Date: Mon, 13 Oct 2003 22:46:20 -0700 Message-ID: <961522C00478694CB10DAFE295B7ED8102585C8E@sl-mail2.spde.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How to run a .jar created by ant Thread-Index: AcOSFVTeSgvbbBjNSPq4IDcBUVOXYQAAI9FA From: "Harkness, David" To: "Ant Users List" X-OriginalArrivalTime: 14 Oct 2003 05:46:20.0321 (UTC) FILETIME=[7E591910:01C39216] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N romalopes once said: > Using the ant I can cread the MSX.jar, but when I run this jar the > follow error appears: Exception in Thread "main" > java.lang.NoclassDefFoundError: msx/MSX=20 >=20 > Another problem is how to use the classpath correctly. >=20 > > > > > > > > value=3D"${user.name}"/> > > value=3D"${path.classpath}\socket.jar ${xerces.home}/xerces.jar""/> > > I haven't done this myself, but from what I know of Ant and Java, I suspect your problem is with the manifest's classpath. Keep in mind that when you include the file /foo/bar/lib/xerces.jar into your JAR, it strips the directory entirely. Thus you locate it as "xerces.jar" without a path component. Similarly, when you include a bunch of *.class files from a hierarchy, it strips the root ("${dir.bin}/") from the files and only includes the package hierarchy. Given the above, you should merely have to change the "Class-Path" line to this: Hmm, you also have an extra close quote (/xerces.jar""/>) unless that's just a typo. I figure Ant wouldn't run as the XML is invalid. Anyway, give that a shot. :) David Harkness Sr. Software Engineer Sony Pictures Digital Networks (310) 482-4756 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org