J2ME Learning--using OTA to publish your program

Source: Internet
Author: User
Tags domain
As is known to all, J2ME programs are published in the form of OTA, data line transmission, infrared and Bluetooth transmission. Here is a brief talk about how you can publish your program via OTA.

OTA is over the air shorthand, that is, through the network download, this is the main form of release. Now the Treasure box is used in this form.

There are several steps you can take to publish a program using OTA:

1. Add MIME support for Jad and jar files on your Web server.

Suffix name
MIME type

Jad
Text/vnd.sun.j2me.app-descriptor

Jar
Application/java-archive






2. Publish WML page:

For example, your jar filename 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 above code on a Web server, for example, save as TEXT.WML

3, modify the Jad file:

Add in Jad file

Midlet-jar-url:http://domain/directory/test.jar

One of the Http://domain/directory/test.jar is the path to your jar file.





With the above settings, you can publish your WML page path as your WAP download page. Users only need to enter this path on the phone to access and download your 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.