A. Create Link to Jad File
Upload your jad and cod file in one folder.
B. COD file more than 64 KB
1 . If cod file size is bigger than 64 kb then rename it to *.zip/*.rar file and unzip.
2. Delete zip file after it is unzipped.
3. Then you will have more than one cod like name.cod, name-1.cod, name-2.code, and so on.
Also have a look at this KB article.
C. WebServer Unknow Jad/COD File
>> Using IIS :
You will need to access Internet Information Services and right-click on Web Sites and select properties. Select the HTTP Headers tab and click on MIME Types. Here you will add two MIME Types:
MIME type: text/vnd.sun.j2me.app-descriptor
MIME type: application/vnd.rim.cod
You may need to restart IIS once you’ve added the MIME types. Open the command prompt and type in “iisreset” (minus the quotes).
Before you can use a server for OTA Provisioning, it must be configured to recognize the correct MIME types for JAR and JAD files.
* The MIME type for a JAR file is application/java-archive.
* The MIME type for the JAD file is text/vnd.sun.j2me.app-descriptor. This specifies the default character set to use (UTF-8) to convert the JAD file from its transport format to the correct MIDP Unicode-encoding.
* If you are using the Tomcat server delivered with JBuilder,
1. Find the file web.xml in the Tomcat install ‘conf’ sub-directory ( <JBuilder7_home>\jakarta-tomcat-4.0.3\conf).
2. Put the following lines in the section “Default MIME Type Mappings”:
* If you are using an Apache server,
1. Find the file mime.types in the Apache install ‘conf’ sub-directory (<Apache>\conf\.)
2. Specify the JAD and JAR MIME types in the file as follows:
# MIME type Extension
See your specific server documentation for directions on specifying MIME type configuration.
Here is an example of a simple
AddType text/vnd.sun.j2me.app-descriptor .jad
AddType application/vnd.rim.cod .cod