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-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org