Apps work on emulator but not on phone
Hello, I am a beginner to mobile programming and can't get my apps to work on my phone.
They work just perfect on the emulator (I am using Nokia IDE for Java ME (Eclipse) v1)
but when I put them on my phone (a Nokia C3-00) there is always this error message "Invalid application".
I even tried a simple hello world app with the same result.
Can anyone give me a hint where my mistake might be?
Re: Apps work on emulator but not on phone
What's in your .jad file and what's in the manifest file inside the .jar?
Re: Apps work on emulator but not on phone
.jad file:
[QUOTE]MIDlet-Jar-Size: 19485
MIDlet-Jar-URL: HelloWorld.jar
MIDlet-Name: Hello World MIDlet Suite
MIDlet-Vendor: DTR
MIDlet-Version: 1.2
MicroEdition-Configuration: CLDC-1.1
MicroEdition-Profile: MIDP-2.0
[/QUOTE]
MANIFEST.MF:
[QUOTE]Manifest-Version: 1.0
MIDlet-Vendor: DTR
MIDlet-Version: 1.2
MicroEdition-Configuration: CLDC-1.1
MIDlet-Name: Hello World MIDlet Suite
MicroEdition-Profile: MIDP-2.0
[/QUOTE]
Re: Apps work on emulator but not on phone
Hi DTr and Welcome to Nokia Developer Discussion board!
please check the compulsory attributes for jad/manifest listed here [url]http://www.developer.nokia.com/Community/Wiki/Jad_&_manifest_entries/attributes[/url]
from the above jad/manifest, following mandatory attribute is missing [QUOTE]MIDlet-<n> Information about the nth MIDlet in the MIDlet suite. Provides the name, icon and main class of the MIDlet, separated by a comma.[/QUOTE]
Re: Apps work on emulator but not on phone
That was the mistake. I added the MIDlet-1 attribute and now it works.
Thank you!