|
Re: can't run jar file [message #907469 is a reply to message #907325] |
Tue, 04 September 2012 04:15 |
|
On 09/03/2012 01:13 PM, karl neumann wrote:
> After having developed my first java applet which runs great in eclipse,
> I exported the project to a jar file. When I try to run the jar file
> from a command prompt I get: "no main manifest attribute, in
> MyClass.jar". I added the following line to the MANIFEST.MF file:
> Main-Class:org.eclipse.jdt.MyClass . I still get the same message when
> trying to run the jar file. I am not sure about the org.eclipse.jdt
> part. It's a guess. What am I doing wrong? Another observation, the
> MyClass.java source file does not have a main() or init() method. I
> don't know if that is relevant or not. I am at wits end trying to figure
> this out. Please help!
This might help.
http://www.javahotchocolate.com/tutorials/jars-and-wars.html#runnable
|
|
|
Powered by
FUDForum. Page generated in 0.03130 seconds