ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <ddevie...@gmail.com>
Subject Re: Manifest Classpath ( programmatically generated but messedup).
Date Tue, 23 Jun 2009 19:06:42 GMT
On Tue, Jun 23, 2009 at 12:40 PM, Garima Bathla<garima.bathla@gmail.com> wrote:
> I am trying to set classpath for a standalone application and I am not able
> to figure out what exactly I am doing wrong. Below is the classpath that is
> being generated in the MANIFEST.MF And this isn't valid classpath , when I
> run java -jar mystandaloneapplication.jar, it cannot find any classes.

Well I can't see anything wrong with your classpath.

From: http://java.sun.com/docs/books/tutorial/deployment/jar/basicsindex.html :
To run an application packaged as a JAR file (requires the Main-class
manifest header): java -jar app.jar

Your snippet does not add a Main-Class attribute to the manifest. --DD

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


Mime
View raw message