How to Use Ota to publish your program
Author: Chen yuefeng
From: http://blog.csdn.net/mailbomb
As we all know, the main forms of the release of the J2EE program include Ota, data line transmission, infrared and Bluetooth transmission. Here is a brief introduction to how to release your program through Ota.
OTA is short for over the air, which is downloaded over the network. This is one of the main release forms. The current treasure chest uses this form.
To use Ota to publish a program, follow these steps:
1. Add mime support for Jad and jar files on your Web server.
Suffix |
Mime Type |
Jad |
Text/vnd. Sun. J2. app-Descriptor |
Jar |
Application/Java-Archive |
2. Publish the WML page:
For example, if your jar file name is test. Jad, the simplest download page is:
<? XML version = "1.0"?>
<! Doctype WML public "-// wapforum // dtd wml 1.3 // en"
Http://www.wapforum.org/DTD/wml13.dtd>
<WML>
<Card id = "card1" Title = "Download MIDlet">
<A href = "test. Jad"> test </a>
</Card>
</WML>
You can save the preceding code on a Web server, for example, text. WML.
3. Modify the JAD file:
Add
MIDlet-jar-URL: http: // domain/directory/test. Jar
Http: // domain/directory/test. jar is the path of your jar file.
After the above settings, you can publish your WML page path as your wap download page. You only need to enter this path on your phone to access and download your program.