Windows200 + tomcat4.1.24 + j2wtk2.0 1. install a web server (Tomcat) and modify the corresponding configuration file to support Jad and jar MIME types Jad: text/vnd. sun. j2s. app-Descriptor jar: Application/Java-archive install Tomcat (don't tell me you won't ?), The new version of Tomcat is supported by default. in earlier versions, modify % tocmat %/CONF/Web. XML to find the mime and add it.
Jad Text/vnd. Sun. J2. app-Descriptor Jar Application/Java-Archive
2. Create a directory JSP (later JSP, HTML, Jar) in disk D. Jad files are all lost here), configure tomcat to support it (many articles have been written before the method), create a time. jsp in D:/JSP, the content is:
Open the browser to access http: // yourip: 8080/JSP/time. JSP. The current time indicates that the configuration is successful. 3. in D:/JSP, create a new directory, and complete the xxx. jad and the corresponding XXX. drop the JAR file in it. Pay attention to XXX. fill in the corresponding XXX in the MIDlet-jar-URL attribute of the JAD file. the absolute path of jar. In this example, http: // yourip: 8080/JSP/j2-xxx. jar4. create a j2me.html file in D:/jspwith the following content:
Demos. Jad uidemo. Jad games. Jad
So far, the server configuration is complete, start Tomcat 5. install j2wtk2.0, start OTA provisioning in the j2wtk menu in the Start Menu, click apps in the lower right corner of the screen, click Install application, and enter http: // yourip: 8080/JSP/j2me.html, demos appears on the screen. jad, uidemo. jad, games. jad three options, select an install, execute if normal operation for next 6. use a mobile phone that supports Java (motot720 is used occasionally) to activate the GPRS Service. Enter the URL http: // yourip: 8080/JSP/j2me.html in the corresponding online program, after the installation, the screen is the same as step 5, and the following figure is the same as Step 5. Finally, write the following Notes: 1. make sure XXX. the MIDlet-jar-URL attribute in the JAD file points to the corresponding XXX. absolute URL of the JAR file 2. in the preceding steps. HT The ml file is on the camera and should be modified accordingly. 3. Remember to test it with j2wtk before downloading the file, and then download it with your mobile phone (GPRS for money). 4. Currently, midp2 is supported on the market. There aren't many mobile phones with 0, so do not use midp2 in the program. When I downloaded a demo using t720 and installed it, the system prompts "unsupported version ~~~~~ 5. replace all the above yourip addresses with the IP address of the local machine so much. If you have any questions, ask again!