MIDlet JAR File (error : Failed to load main-class manifest attribute .)

View: New views
2 Messages — Rating Filter:   Alert me  

MIDlet JAR File (error : Failed to load main-class manifest attribute .)

by meinterest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hey all,
I`ev started learning J2ME and im using NetBeans IDE , my problem is that my projects run fine in the IDE but when i double-click the JAR file (that is automatically created by NetBeans ) or when i try to run it using the command line an error comes up which is :
 Failed to load main-class manifest attribute  from ..
but my project dosn`t have a main class (public static void main (String args[] )!!! it only have MIDlet class !!
please any thoughts ?!?
thanks
[Message sent by forum member 'enas_ahmad5' (enas_ahmad5)]

http://forums.java.net/jive/thread.jspa?messageID=297669

===========================================================================
To unsubscribe, send email to listserv@... and include in the body
of the message "signoff KVM-INTEREST".  For general help, send email to
listserv@... and include in the body of the message "help".

Re: MIDlet JAR File (error : Failed to load main-class manifest attribute .)

by meinterest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

you can not run midlets from double clicking on it, because the standard java classes used by JavaSE are different for JavaME.  You will need to run it in the WTK using the Emulator.

Here is a link with information to help do this.
http://java.sun.com/javame/reference/docs/sjwc-2.0-web/docs/ToolsGuide-html/cmdline-exes.html#50556937_pgfId-1016916

-Shawn
[Message sent by forum member 'sfitzjava' (sfitzjava)]

http://forums.java.net/jive/thread.jspa?messageID=297673

===========================================================================
To unsubscribe, send email to listserv@... and include in the body
of the message "signoff KVM-INTEREST".  For general help, send email to
listserv@... and include in the body of the message "help".
LightInTheBox - Buy quality products at wholesale price!