ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ognjen Blagojevic <ogn...@rcub.bg.ac.yu>
Subject Re: unable to execute JAR file
Date Wed, 18 Jun 2008 08:16:08 GMT
Irfan.Sayed@t-systems.com wrote:
> I have 10 java files and I have written Ant build.xml to compile and 
> create JAR file which contains the .class files. Now my requirement is 
> that I need to execute/install the JAR file but unfortunately I can’t do 
> this as I am getting following error.
...
> Failed to load Main-Class manifest attribute from

You should read a bit about manifest files. See this link[1].

In short, JVM doesn't know which class has the main method to be used as 
the entry point to your application.

-Ognjen

[1] 
http://java.sun.com/docs/books/tutorial/deployment/jar/manifestindex.html


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


Mime
View raw message