Subject: J2EE Application Software Development
The attachment is the basic architecture required for the development of the program. You can download and decompress the file to any directory on the computer (because subsequent tests will be performed in the DOS environment, therefore, we recommend that you create a dedicated directory under the root directory to collect and store various j2projects. If you are a person who enjoys the pleasure of key-in, please choose your preferred one)
Directory description;
C: \ j2meprjs \ sample \ build. XML // a script file for ant to compile, verify, running MIDlet... etc, if there is a change sample. modify the file name corresponding to this file in Java
C: \ j2meprjs \ sample \ manifest. MF // modify the file name corresponding to this file if the file name of sample. Java is changed.
C: \ j2meprjs \ sample. Jad // MIDlet descriptor for emulator use to run. If you change the file name of sample. Java, modify the file name corresponding to this file.
C: \ j2meprjs \ sample \ ant \ filesizetask. Java // update *. Use the MIDlet size and MIDlet URL in Jad
C: \ j2meprjs \ sample \ res \ sample.png // MIDlet icon
C: \ j2meprjs \ sample \ SRC \ sample. Java // mail MIDlet
C: \ j2meprjs \ sample \ SRC \ samplecanvas. Java
Start dos execution
Change directory to c: \ j2meprjs \ sample>
For compile and debug MIDlet type (we recommend that you use it at the early stage of development to view debug details)
C: \ j2meprjs \ sample> ant debug
For compile and obfuscating MIDlet type (this command can be used after the development is complete, and the MIDlet code can be chaotic and compressed size)
C: \ j2meprjs \ sample> ant
For running MIDlet from Sun's emulator type (run is used independently after compile is successful, or you can modify the build. XML content so that the MIDlet compile can run emulator directly after completion)
C: \ j2meprjs \ sample> ant run
PS: The above information was modified by my personal reference to other advanced experiences. It provides a good reference to the users who are interested in j2's, and also hopes to simplify the process of developing the j2's MIDlet, let everyone focus on the development of the MIDlet program, and leave the cumbersome MIDlet generation process to the system for automatic processing!
I hope that after building the development environment, you can discuss and help solve more in-depth MIDlet program design problems. Because I think the j2se MIDlet program is a lite version, the design principles are similar, I think your advanced Java skills will surely consider it just a piece of cake when it is used in j2s after crossing the cumbersome development environment settings.
Other Reference URL
Http://wireless.java.sun.com/
Http://java.sun.com/j2me/
Http://wireless.java.sun.com/midp/ttips/
Http://wireless.java.sun.com/midp/articles/test/
Http://www.j2mehome.com/j2me/