Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » 移动互联网  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 请教:写了一个MIDlet,怎么把它发布到网页上?
Yazor





发贴: 7
积分: 0
于 2004-02-26 09:04 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
编写了一个MIDlet想把它放在个人主页上,就像Applet应用在网页里一样。用的是wtk+jdk142开发的,现在程序运行没有问题。请各位大虾指导一下详细的步骤和代码。


蓝天………
大海……
翱翔…
QQ:4332847

…吉林大学牡丹园欢迎您…
[img]http://img.bbs0.tom.com/upload_img/66/200402/pic_1077689514.png[/img]


作者 Re:请教:写了一个MIDlet,怎么把它发布到网页上? [Re:Yazor]
jefferykim





发贴: 34
积分: 10
于 2004-03-01 10:44 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
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>



作者 Re:请教:写了一个MIDlet,怎么把它发布到网页上? [Re:Yazor]
Yazor





发贴: 7
积分: 0
于 2004-03-03 13:15 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
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



蓝天………
大海……
翱翔…
QQ:4332847

…吉林大学牡丹园欢迎您…
[img]http://img.bbs0.tom.com/upload_img/66/200402/pic_1077689514.png[/img]



flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   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