Windows200 Tomcat4.1.24 J2WTK2.0
1. Install a web server (i. is Tomcat) to 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
jad
TEXT / VND.SUN.J2ME.APP-Descriptor
jar
Application / Java-Archive
2. Create a directory JSP in the D disk (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:
Open the browser to access http: // Yourip: 8080 / jsp / time.jsp, appearing
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,
Demos.jad
Uidemo.jad
Games.jad
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), ensuring that the GPRS service is opened, in the corresponding Internet program
Enter the URL http: // Yourip: 8080 / jsp / j2me.html, after boarding, the same screen is the same, 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!