J2ME learning - use OTA to release your program

xiaoxiao2021-03-06  19

J2ME learning - use OTA to release your program

Author: Chen Yuefeng

From: http://blog.9cbs.neet/mailbomb

It is well known that the form of J2ME programs is mainly: OTA, data line transmission, infrared and Bluetooth transmission. Just talk about how to release your program through OTA.

OTA is the shortcomings of Over the Air, that is, through the web download, this is one of the main issues. Now the treasure chest is in this form.

Using OTA to publish procedures, you need to follow these steps:

1. Add MIME support for JAD and JAR files on your web server.

Suffix name MIME type jadtext / vnd.sun.j2me.app-descriptorjarapplication / java-archive

2, release the WML page:

For example, your JAR file name Test.jad, the easiest download page is:

"http://www.wapforum.org/dtd/wml13.dtd">

test

You can save the above code on the web server, for example saved as text.wml

3, modify the JAD file:

Added in the JAD file

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

Where http: //domain/directory/test.jar is the path to your JAR file.

After the above settings, you can publish your WML page path as your WAP download page. Users only need to enter this path on your phone to access and download your programs.

转载请注明原文地址:https://www.9cbs.com/read-42159.html

New Post(0)