Problem completing tasks in Midlets

Using the Java ME Platform SDK 3.0.

I open a new project, and it runs, but if I try to do it from the moment of creating a new project> midlet, this is created using hello world and this work, but if I create class code class> new project>. and I write extends midlet implements the listener amm command it does not work am dont gets any error and if I copy all my code and I paste it into "new project> midlet" and I delete everything that it has and I I paste my code, it really works mmm always, and when the default name was "HelloMidlet", I just look at two things ...

INSTALL APPLICATION (if I open it, it: enter the website to install) CERTIFICATE AUTHORITIES

i repet, if I allow the default name "hellomidlet", it really works (with my own code), but if I change this name, it will not work.

* Error * The problem arose when the application is deployed from http://127.0.0.1:51612/MobileApplication2.jad Cause: A corrupt JAR, error reading: hello / HelloMIDlet.class

+3
source share
1 answer

I think you probably just need to set the MIDlet class name in the project settings ...

Go to Application Descriptor Parameters -> Midlet and make sure that the class name matches the name of your class that extends MIDlet.

+8
source

All Articles