| Reply | « Previous Thread | Next Thread » |
|
when i make midlet, i can execute it with emulators i have. When i install it to real phone(6310i) and try to execute it there - "invalid file" message apears! Does anybody have any idea how can this happen?
|
|
Have you preverified your MIDlet?
|
|
Yes i have. A few minutes ago,i even tried to make a simple example step by step in compliance with book. But still same problem.
Is it possible that my phone is demaged and therefor that does not work? Or it can be becouse i installed wrong software(i use j2se v1.4, WTK v1.0.4_01 and Nokia developer's suite 2.0)? |
|
Emulators often have two ways of running a MIDlet... one for debugging, which bypasses many of the normal checks on the MIDlet, and one for testing deployment (may be referred to as a "provisioning" mode) that is more strict. If you are running your MIDlet on an emulator in the normal debugging mode, it may allow you to use a MIDlet that is actually invalid, because the JAD file is incorrect, the manifest in the JAR is incorrect, or the JAR file is too large.
If you can install the MIDlet, but not run it, then presumably the JAD is OK and the JAR is small enough. Possibly, there is something wrong in the manifest, the manifest doesn't match the JAD, or the MIDlet-n: item in the JAD is wrong. Graham. |
| grahamhughes |
| View Public Profile |
| Find all posts by grahamhughes |
|
Have you tried to start the jar or the jad file ? On 3510i emulator you get this message when you try to load the jar instead of the jad file.
|
|
Here you are jad file and MANIFEST.MF file who is working on a 7250
Jad ------ MIDlet-Name: sendmail MIDlet-Version: 1.0 MIDlet-Vendor: Yoan MIDlet-Jar-URL: SendMail.jar MIDlet-Jar-Size: 3273 MIDlet-Description: SendMail MIDlet-Icon: /icon.png MIDlet-1: sendmail, /icon.png, sendmail MANIFEST.MF --------------------- MIDlet-1: sendmail, ,sendmail MIDlet-Name: sendmail MIDlet-Vendor: Yoan MIDlet-Version: 1.0 |
|
As far as I know is it absolutely necessary, that the attributes specified in the .jad file are identical to the ones specified in the manifest file.
For example in the .jad you specify in the MIDlet-1: attribute the /icon.png and in the manifest not. Also you should check, if the manifest file in the .jar really contains all the information specified in your manifest. I found, that the jar.exe tool manipulates the manifest, adds some new entries, and surprisingly sometimes deletes others. Also you might need to specify the MicroEdition-Profile attribute in the manifest file. Hope this helps a bit. I was trying for hours to make mine work, and then found, that the order of the attributes in the .jad file has some effect, if the stuff is working on my Nokia 6310i, and that also some attributes where missing in the manifest file stored in the .jar even, when they where listed in the manifest file I used for creation. I believe some things are not really worked out yet... Good luck... |
|
I can confirm everying that rlincke describes as "might" as being "definite". Check the documentation from the Wireless Toolkit for a full list, but the manifest must contain both microedition-configuration and microedition-profile. Where an attribute is required in both JAD and manifest, as rlincke says, it must have an identical value in both, for example, MIDlet-n.
Graham. |
| grahamhughes |
| View Public Profile |
| Find all posts by grahamhughes |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|