• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

how to install a midlet  RSS feed

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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-
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!