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
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
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.
[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
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
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
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