Windows200 Tomcat4.1.24 J2WTK2.0
1. Install a web server (i. is Tomcat) Modify the corresponding configuration file to support JAD and JAR two MIME
Types of
JAD: text / vnd.sun.j2me.app-descriptor
Jar: Application / Java-Archive
Install Tomcat (Don't tell me you?), Tomcat new version default support, old version modification
% TOCMAT% / conf / web.xml, find MIME, add
mime-mapping>
mime-mapping>
2. In the D disk, create a directory JSP (later JSP, HTML, jar.jad files are lost here), configure Tomcat
Make it support (there are many articles in front of the method), in D: / JSP new Time.jsp, the content is:
<% = new java.util.date ()%> Open the browser to access http: // Yourip: 8080 / jsp / time.jsp, appearance
Current time indicates successful configuration
3. Newly built a directory J2ME in D: / JSP, will be lost inside the XXX.jad and the corresponding xxx.jar file, pay attention
The MIDlet-JAR-URL property of the xxx.jad file fills in the absolute path of the corresponding xxx.jar, in this case
Http: // Yourip: 8080 / JSP / J2ME / XXX.jar
4. Create a J2ME.html file in D: / JSP,
HTML>
hEAD>
html>
At this point, the server is configured, starting Tomcat
5. Install J2WTK2.0, start OTA Provisioning in the J2WTK menu of the Start menu, click on the lower right corner of the screen
Apps, click Install Application, type http: // Yourip: 8080 / jsp / j2me.html, no
Unexpected, the screen appears Demos.jad, UIDEMO.JAD, GAMES.JAD three options, select an install, execute
If you are running normally, the next step
6. Use a mobile phone that supports Java (the use of MOTOT720), make sure to open the GPRS service, enter the URL http: // Yourip: 8080 / jsp: // Yourip: 8080 / jsp: // Yourip: 8080 / jsp: // Yourip: 8080 / JSP / J2ME.HTML, appear and step 5 The same picture, behind
And 5
Finally, write a few more precautions:
1. Make sure 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 file in the above steps is on the chassis, and should be modified accordingly.
3. Before downloading, I remember to test with J2WTK. After success, download it with mobile phone (GPRS wants money)
4. Now there is not a lot of mobile phones that support MIDP2.0 on the market, not to use the MIDP2.0 API in the program.
Hey, even after using T720 to download a Demo installation, please prompt UNSUPPORTED VERSION, Hao ~~~~~
5. All of your iP remember to change the original IP
Write so much first, ask questions again!