Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to download native J2ME program to mobile phone with OTA

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article shows you how to use OTA to download native J2ME programs to your mobile phone, the content is concise and easy to understand, it will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

J2ME (Java2MicroEdition) is a part of Java2, which is called together with J2SE and J2EE. Here is a brief introduction to how to download native J2ME programs to your mobile phone using OTA.

Use OTA to download native J2ME programs to your mobile phone

Environment: windows2000+tomcat4.1.24+j2wtk2.0

one. Install a web server (I use tomcat) and modify the configuration file to support both JAD and JAR MIME

Types

JAD:text/vnd.sun.J2ME.app-descriptor

JAR:application/java-archive

Install TOMCAT (don't tell me you won't? ), the new version of tomcat is supported by default, the old version modifies% tocmat%/conf/web.xml, where the mime is found, add

Jad text/vnd.sun.J2ME.app-descriptor jar application/java-archive

two. Create a new directory jsp (later jsp,html,jar) on the d disk. Throw all the jad files here), configure tomcat to support it (many articles have been written earlier on the method), create a new time.jsp in d:\ jsp, and the content is:, open a browser to access http://yourip:8080/jsp/time.jsp. The current time indicates that the configuration is successful.

3. Create a new directory J2ME in d:\ jsp, and throw the finished xxx.jad and the corresponding xxx.jar file into it. Note that the MIDlet-Jar-URL attribute of the xxx.jad file is filled with the absolute path of the corresponding xxx.jar, which in this case is http://yourip:8080/jsp/J2ME/xxx.jar.

4. Create a new J2ME.html file in d:\ jsp with the following contents

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report