Re: installing java applications on the mobile phone

Christophe Planty <[email protected]>
Newsgroups gmane.comp.java.sun.kvm
Message-ID <B0D36A13C7B6CA4BBF71DC60519E899001B95968@par-exch-prd1.myopwv.com>
"Why would I want to run MIDlets on my computer ?"

Because the emulator will provide you more information on the error, System.out & System.err can be seen in console (when you launch emulator.exe manually). 

I strongly encourage you to first test on the emulator, then once the MIDlet works on the emulator, you can start testing your app in the handset.

Provisioning MIDlets trough cable or Bluetooth is not always supported, 
(I can't tell for z400, but many devices only recognize jar)
The only reliable method I know is OTA download trough browser. (on a wap page).


http://developers.sun.com/mobility/midp/articles/ota/


Note that the article proposes the full jar URL into jad parameter : 
MIDlet-Jar-URL: http://www.j2medeveloper.com:80/ota/demos.jar


But if jad/jar are deployed in the same path, you can deploy the jad at this URL : http://host/ota/demos.jad

Then provide only local path to the jar :
MIDlet-Jar-URL: demos.jar
( instead of MIDlet-Jar-URL: http://host/ota/demos.jar )

This local reference from jad to jar works on the Samsung z series. 
(tested z340,z360,z400)

This could have the advantage to allow installing MIDlet from the jad locally. 
But this will have the counter effect to not working anymore with windows mobile phones, which only deal with a full URL in jad parameter.



/Chris



-----Message d'origine-----
De : A mailing list for KVM discussion [mailto:[email protected]] De la part de [email protected]
Envoyé : lundi 17 septembre 2007 14:46
À : [email protected]
Objet : Re: installing java applications on the mobile phone

Hi,
Thank you for your answer.
I've read about making the jar file (inclusive the manifest.mf) and the jad file. But when I transfered the 2 files (like ordinary files, via USB cable) they didn't work. When I tried to open the .jad file it told me "Unrecognized filetype" and when I tried to open the .jar file nothing hapened. I have a Samsung Z400. Those tutorials I've read test their MIDlets on a mobile emulator (on the PC). Why would I want to run MIDlets on my computer ? Of course, I want to install them on the phone. That's their purpose and I should benefit from the Java feature of my phone. That's my opinion.
Thank you again and I will post my question on the category of the forum that you indicated to me.
[Message sent by forum member 'michaeln' (michaeln)]

http://forums.java.net/jive/thread.jspa?messageID=235617

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff KVM-INTEREST".  For general help, send email to
[email protected] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff KVM-INTEREST".  For general help, send email to
[email protected] and include in the body of the message "help".
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.