Return-Path: X-Original-To: apmail-ant-user-archive@www.apache.org Delivered-To: apmail-ant-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 740699F28 for ; Thu, 22 Dec 2011 13:36:05 +0000 (UTC) Received: (qmail 2971 invoked by uid 500); 22 Dec 2011 13:36:04 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 2924 invoked by uid 500); 22 Dec 2011 13:36:03 -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 13569 invoked by uid 99); 21 Dec 2011 20:01:09 -0000 X-ASF-Spam-Status: No, hits=3.1 required=5.0 tests=FORGED_YAHOO_RCVD,FREEMAIL_ENVFROM_END_DIGIT,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Date: Wed, 21 Dec 2011 12:00:41 -0800 (PST) From: xsli2 To: user@ant.apache.org Message-ID: <1324497641644-5092771.post@n5.nabble.com> Subject: Help: create an executable JAR file including 3rd party JAR files MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Dear All: My directory structure is the following: libs/externa/ containing a.jar, b.jar libs/installed/ the generated runnable JAR file, "sample.jar", will be here src/ containing Java source files build/ containing Java class files The main class is x.y.z.MyMain I have had a really hard time to create a runnable JAR file using Ant(version 1.6.5). The JAR file, libs/installed/sample.jar, can be generated. However, when I run it, the classes inside a.jar or b.jar are not available and causes NullPointerException. When I un-tar sample.jar, everything is there. I think manifest classpath is causing the problem. Following is my brief build.xml: Thank you very much. -- View this message in context: http://ant.1045680.n5.nabble.com/Help-create-an-executable-JAR-file-including-3rd-party-JAR-files-tp5092771p5092771.html Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org