Use OTA to download the local J2ME program to the mobile phone

Source: Internet
Author: User
Tags current time modify access tomcat
program | download
windows200 + tomcat4.1.24 + j2wtk2.0 1. Install a Web server (which I used as Tomcat) modify the profile to support JAD and jar two MIME types jad:text/ Vnd.sun.j2me.app-descriptor jar:application/java-archive installed Tomcat (don't tell me you won't?) ), Tomcat new version default support, old version modify%tocmat%/conf/web.xml, find MIME place, add on
Jad Text/vnd.sun.j2me.app-descriptor Jar Application/java-archive
2. Create a new directory JSP (Jsp,html,jar) in D disk. Jad files are dropped here), configure Tomcat to support it (the method has many articles written before), create a new time.jsp in d:\jsp, the content is:, open browser access http://yourip:8080/jsp/time.jsp, appear The current time indicates that the configuration succeeded 3. In d:\jsp a new directory J2ME, will do a good job of Xxx.jad and the corresponding Xxx.jar file in the inside, note xxx.jad file Midlet-jar-url attributes fill in the corresponding Xxx.jar absolute path, in this case for Http://yourip:8080/jsp/j2me/xxx.jar 4. Create a new j2me.html file in d:\jsp, content
J2ME Demos.jad Uidemo.jad Games.jad
At this point, server-side configuration is complete, start Tomcat 5. Install j2wtk2.0, start OTA Provisioning in the Start menu's J2WTK menu, click on the apps in the lower right corner of the screen, click Install application, enter http:// Yourip:8080/jsp/j2me.html, no surprise, the screen appears demos.jad,uidemo.jad,games.jad three options, select a install after performing if normal operation proceed next 6. With a support Java mobile phone (I used motoT720), to ensure the opening of the GPRS business, in the corresponding Internet access program to enter the Web site http://yourip:8080/jsp/j2me.html, after the appearance and step 5 of the same screen, behind and 5 the same Finally write a few points to note: 1. Make sure that the Midlet-jar-url attribute in the Xxx.jad file points to the absolute URL of the corresponding Xxx.jar file 2. The j2me.html files in the above steps are on a couple of machines and should be modified 3 accordingly. Remember to use J2WTK test before downloading, and then use the mobile phone to download (GPRS ask for money) 4. Now on the market to support the MIDP2. 0 of the mobile phone seems to be not many, note that the program does not use the MIDP2. 0 API, I just used T720 download a demo after the installation prompts unsupported version, Halo ~~~~~ 5. Above all Yourip remember to change the cost of the computer IP first write so much, have questions to ask!


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.