ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Help: create an executable JAR file including 3rd party JAR files
Date Thu, 22 Dec 2011 16:49:29 GMT
On 2011-12-21, xsli2 wrote:

> 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

> 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.

What does the Class-Path attribute in the generated manifest look like?
Are the jars where it claims them to be (if there are relative paths
they have to be relative to the jar you are executing not to your
current working directory)?

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message