RE: unable to execute JAR file

2008-06-18 Thread Toomey, Kevin H (ATS, IT)
Hi Irfan, You need a manifest file with a main class attribute. A quick googling of 'jar main-class' brings back a wealth of links to check out. Here's one: http://java.sun.com/developer/Books/javaprogramming/JAR/basics/run.html Thanks, Kevin From: [EMAIL PR

RE: unable to execute JAR file

2008-06-18 Thread Irfan.Sayed
attached java source file and manifest file. Please help Regards Irfan. -Original Message- From: Taj, Abdul [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2008 6:23 PM To: Ant Users List Subject: RE: unable to execute JAR file Does the jar have a manifest file that specifies the main

RE: unable to execute JAR file

2008-06-18 Thread Taj, Abdul
Does the jar have a manifest file that specifies the main class that needs to be executed when you execute it? When you create a jar it will have a META-INF directory inside which you need to place a manifest file that has the main class that needs to be executed when you execute the jar file.

Re: unable to execute JAR file

2008-06-18 Thread Ognjen Blagojevic
[EMAIL PROTECTED] 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 loa

Re: unable to execute JAR file

2008-06-18 Thread Henning Bredel
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 > th

Re: unable to execute JAR file

2008-06-18 Thread Prashant Reddy
Google is your friend. http://www.google.co.in/search?q=Failed+to+load+Main-Class+manifest+attribute The first hit from the search result has this link to Java tutorial : http://java.sun.com/docs/books/tutorial/deployment/jar/basicsindex.html To execute a jar using 'java' command, the JAR file

Re: unable to execute JAR file

2008-06-18 Thread Ognjen Blagojevic
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 attr