Topic: 请教:写了一个MIDlet,怎么把它发布到网页上?

  Print this page

1.请教:写了一个MIDlet,怎么把它发布到网页上? Copy to clipboard
Posted by: Yazor
Posted on: 2004-02-26 09:04

编写了一个MIDlet想把它放在个人主页上,就像Applet应用在网页里一样。用的是wtk+jdk142开发的,现在程序运行没有问题。请各位大虾指导一下详细的步骤和代码。

2.Re:请教:写了一个MIDlet,怎么把它发布到网页上? [Re: Yazor] Copy to clipboard
Posted by: jefferykim
Posted on: 2004-03-01 10:44

First you should create a directory in your web server, let us name "midlet" and your midlet name is "mymidlet", the jad file is mymidlet.jad and jar file is mymidlet.jar.

Then you copy the jad, jar files into midlet. You need compose a wml file that includes your midlet description.

Note that the jad file, please make sure like the following:

MIDlet-Jar-URL: mymidlet.jar

The wml page is similar to the following code:

<?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="Your Page title">
<a href="midlet/mymidlet.jad">Your jad description</a>
</card>
</wml>

3.Re:请教:写了一个MIDlet,怎么把它发布到网页上? [Re: Yazor] Copy to clipboard
Posted by: Yazor
Posted on: 2004-03-03 13:15

hi,jefferykim

I did it as you say. but there are still some questions.
What should I name the wml file & where place the wml page file? How to run the wml page?

Web server is tomcat5. i finished the deployement of tomcat5, and it work well. like you said, I copy mymidlet.jad and mymidlet.jar into the directory F:/mymidlet.

thanx a lot.
-Yazor


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923