Thanks for your speedy help!I have just developed this simple midlet that is to perform the encryption.I have not made use of JSR 177.I ran the code in NetBeans and downloaded the .JAR file from there into my phone.It ran perfectly in my 6500 slide but in Nokia 6131 & N72 they are receiving this invalid aplication message. i mime it simply ran, but in those phones it is first being installed and then it flashes "invalid application".
The code looks fine. I tried it on my N95 and it worked.
I don't have an S60 2nd edition or a Series 40 device so I don't know exactly how they handle this, so this is just a guess: is your project configured for CLDC 1.1 and MIDP 2.1? If so, that's most likely the problem. N72 and 6131 only support MIDP 2.0.
I just wrote a general code.I had no idea whether it was MIDP 2.1 specific.Are there some downloads available so that the other phones can also run the application??
The code itself should be MIDP version independent. I tried it on the S60 3rd edition FP2 emulator. First I configured the project for MIDP 2.1 and it worked. Then I configured it for MIDP 2.0 and it worked. As far as I can tell, the only difference is that the MIDP version is specified in the midlet's manifest and JAD file. If the specified version is the same as the version that the device supports, it will work. Otherwise it won't. There is no way to change the MIDP version of a phone, through downloads or otherwise.
Originally Posted by mugiwara
Is there a way to make it compatible with MIDP 2.0??
One solution would be to simply make a project for MIDP 2.0. Another might be to set the MicroEdition-Profile attribute in the manifest and JAD file to both MIDP-2.0 and MIDP-2.1 (I haven't tested this).
Oh and if you're interested to see how JSR 177 can be used for encryption/decryption, here's an article about it.