MIME Types for hosting J2ME .jar and .jad files

If you want a mobile phone to be able to download and install a java application (.jad/.jar file) from your website, you need to set up the correct MIME types for .jar and .jad files if they have not been set up by your webhost.

With apache, you can usually do this on a per-directory basis by adding the following lines to your .htaccess file:

addtype text/vnd.sun.j2me.app-descriptor jad
addtype application/java-archive jar

7 thoughts on “MIME Types for hosting J2ME .jar and .jad files

  1. It was returning text mime type for the .jars so that the phone didn’t recognize the file. Just made these corrections to the .htaccess and it ok now!

  2. Brian,
    Sorry, you’ll have to get your website admin to set this up in the global mime types configuration then. (Or switch to a better webhost.)
    Jay

Leave a Reply

Your email address will not be published. Required fields are marked *