Call OTA to release the agent program

Source: Internet
Author: User

OTA is short for OverTheAir, that is, downloading through the network. This is one of the main forms of the release of the J2EE program, here, let's take a look at how to use OTA to release the J2EE program.

How to Use OTA to publish a j2e-hpc Program

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 OverTheAir, that is, download through the network, which 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.

2. Publish the WML page:

For example, if your jar file name is test. jad, the simplest download page is:

 
 
  1. <?xmlversionxmlversion="1.0"?> 
  2.  
  3. <!DOCTYPEwmlPUBLIC"-//WAPFORUM//DTDWML1.3//EN"  
  4.  
  5. "http://www.wapforum.org/DTD/wml13.dtd"> 
  6.  
  7. <wml> 
  8.  
  9. <cardidcardid="card1"title="DownloadMidlet"> 
  10.  
  11. <ahrefahref="test.jad">test</a> 
  12.  
  13. </card> 
  14.  
  15. </wml> 

You can save the preceding code on a WEB server, for example, text. wml.

3. Modify the jad file:

Add

 
 
  1. MIDlet-Jar-URL:http://domain/directory/test.jar  
  2.  

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 mobile phone to access and download your j2s program.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.