Midlet Over The Air Provisioning Set-up for 3rd Party Hosting
November 23, 2008 by GabrielaTo provision a Midlet over the web and allow your users to download it directly on the phone you need both the .jad and .jar file. The .jad file is the Java Application Descriptor and has information about your J2ME application.
In order to provision your Midlet over the web, the web server must be set up the serve the right mime types for the jar and the jad files and the jad file must have the right path to the .jar file. Your hosting provider must allow .htaccess files on your account.
1. Look for a .htaccess file in the root folder of your website. If not .htaccess file exists, create one.
2. Paste these instructions in the .htaccess file and save it:
<IfModule mod_mime.c>
AddType text/vnd.sun.j2me.app-descriptor .jad
AddType application/java-archive .jar
</IfModule>
3. In your .jad file make sure your application URL is correct:
MIDlet-Jar-URL: http://www.yoursite.com/midletpath/midlet.jar
Test your Midlet by entering http://www.yoursite.com/midletpath/midlet.jad in your mobile phone’s browser. Follow the instructions and enjoy your Midlet.
Note:
If you are working on a Mac and you cannot see the .htaccess file here is how you can enable the display or the hidden files in Finder:
1. open Terminal (you can use Spotlight to search for it)
2. Type these 2 commands:
$ defaults write com.apple.finder AppleShowAllFiles true
$ killall Finder
Now you should be able to see the hidden files (the files starting with a .).

You must be logged in to post a comment.