aspose file tools*
The moose likes Java Micro Edition and the fly likes how to install a midlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "how to install a midlet" Watch "how to install a midlet" New topic
Author

how to install a midlet

Kobe Phenom
Greenhorn

Joined: Sep 03, 2003
Posts: 13
i have created a mobile application and i have created a midlet suite. can anyone help me how i can install the midlet in a mobile phone. i have seen a number of articles about ota provisioning but i can't figure out how to do it. can anyone please help me about this? an example code perhaps. please.
Jorma Ikonen
Ranch Hand

Joined: Sep 17, 2001
Posts: 49
Hi,
This is not so difficult as you may think.
I do assume that you have tested midlet what works well in your emulator, right? The next thing to do is to create wml-file (e.g. my_midlet.wml) to put on web-server:

The third thing is to open "my_midlet.jad"-file and update the "MIDlet-Jar-URL"-property:
MIDlet-1: Midlet,,my_midlet
MIDlet-Jar-Size: 40366
MIDlet-Jar-URL: http://www.myserver.com/my_midlet.jar
MIDlet-Name: Midlet
MIDlet-Vendor: Cool Midlet Corporation Ltd. / Your Name
MIDlet-Version: 1.0
MicroEdition-Configuration: CLDC-1.0
MicroEdition-Profile: MIDP-1.0
Next put all these three files (wml, jad, jar) on web-server and try to download it by phone's web-browser; - just type the address and open the "Download Midlet"-link there. Everything after that happens automatically and typically application will be installed on phone's desk or to "Application"-menu.
It's important to notice that "mime-type"-settings for "jad" and "jar" files are configured correctly on web-server. Needed mime-types are:
".jad" text/vnd.sun.j2me.app-descriptor
".jar" application/java-archive
Above settings can be tested by Rex Swain's Great HTTP Viewer
Hope this helps and I didn't forgot anything...
br,
Jorma
Kobe Phenom
Greenhorn

Joined: Sep 03, 2003
Posts: 13
Thanks! How about if i would like to create an excutable file for my application? can you help me how i would be able to do that? i.e. i like to store it in a cd together with the emulator so that i could run it in a desktop and use it for demo purposes?tnx again in advance
Jorma Ikonen
Ranch Hand

Joined: Sep 17, 2001
Posts: 49
Emulator is an exe-file and it could be possible to copy on CD, but I'm not sure is it legal. Also, I don't know what orher files emulator requires to have on cd, but at least ".jad", ".jar", and some type of shortcut must/should be copied/created.
-Jorma-
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to install a midlet