logo       

Re: OTA for Nokia: msg#00177

java.sun.kvm

Subject: Re: OTA for Nokia

On Tue, 23 Sep 2003 11:21:36 +0800, "CHIN Vun Loon" <vlchin@xxxxxxxxxxxx>
said:

You need a full URL for the MIDlet-Jar-URL parameter on Nokia phones.

You also need the web server configured to provide the right Content-Type
for the JAD (and also the JAR for some phones/networks).

This is from /etc/mime.types on a linux/apache server:
text/vnd.sun.j2me.app-descriptor jad
application/java-archive jar

Lastly, check the MANIFEST.MF in your JAR. If your midlet classname is
very long, it might be continued on 2 lines. This is per spec, but
doesn't work on phones I've seen. Move the midlet class to a "shorter
package."

If the JAD is wrong, you'll get an error after a few seconds when you
surf to the JAD. If the JAR type is wrong, you'll get the error a few
seconds after you say "OK, download the midlet described." If the
MANIFEST.MF is wrong, the error comes after you download the whole JAR.

Plus what Claudio said.

Good luck,
jim

> Hi! I am new to J2ME. I have problem downloading my apps from a web
> server.
> both Nokia 7210 and 6100 keep prompting "Invalid file format". but it
> work
> fine in motorola T720. Have anyone experience this before.
>
> Content of JAD file
> MIDlet-Name: Diamond Mine
> MIDlet-Version: 0.0.1
> MIDlet-Vendor: Chin Vun Loon
> MIDlet-Jar-URL: Diamond.jar
> MIDlet-Jar-Size: 26820
> MIDlet-Icon: /blue.png
> MIDlet-1: MineMidlet, /blue.png, MineMidlet
>
>
> The jad file is generated by Nokia SDK 1.1. your help is very much
> appreciated! thanks.
>
>
> Regards,
> VUN LOON
>
> ===========================================================================
> To unsubscribe, send email to listserv@xxxxxxxxxxxx and include in the
> body
> of the message "signoff KVM-INTEREST". For general help, send email to
> listserv@xxxxxxxxxxxx and include in the body of the message "help".
--
Jim Mackraz
kvm-interest@xxxxxxxxxxxxx

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



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise