On Wednesday 18 June 2008 09:25:42 [EMAIL PROTECTED] wrote:
> Hi All,
>
>
>
> 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.
>
>
>
> D:\Irfan\Manvendra Singh java code\Manvendra Singh java code>java -jar
> test.jar
>
> Failed to load Main-Class manifest attribute from
>
> test.jar
>
>
>
> D:\Irfan\Manvendra Singh java code\Manvendra Singh java code>
>
>


You have to define your main class within the meta description of 
your jar file.

see

http://ant.apache.org/manual/CoreTasks/jar.html

BTW: It must be *.classes instead of *.classess in your build.xml

Regards

  Henning


Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to