Wrap up
In this tutorial, we have covered almost every aspect of J2ME by developing a typical application -- UniStocks.
You received great hands-on experience in MIDLet basics, high-level user interface design, low-level user interface design, persistent storage mechanisms, J2ME networking, and server-side design, among other areas. In addition, I presented various frameworks and techniques that you can use to develop your own J2ME applications with ease and confidence.
Source/binary code configuration
-
Download
pj2me.zipfrom http://www.jackwind.net/resources/pj2me. -
Unzip
pj2me.zipto a directory. Read carefully the license inlicense.txt. TheUniStocksfolder contains the MIDlet client source code and resources; thejackwindfolder contains server-side code (the servlet). -
Run UniStocks. Copy the
UniStocksfolder to WTK'sappsdirectory, and UniStocks should appear in your project list of WTK ('Open Project ...'). Open UniStocks and run it. The default stock provider is http://www.jackwind.net/resources/pj2me/StockInfoProvider.php, so you should configure the proxy setting before connecting to our server. -
Set up your own stock provider (optional).
First configure your proxy host and proxy port in file
StockInfoProvider.java(inside thejackwindfolder). Compile source file and install the servlet. For details, please refer toREADME.txtunderjackwind/WEB-INF. Set the UniStocks JAD file's user-defined attributeINFO_PROVIDER_URLto your servlet URL; for example:http://127.0.0.1:8080/jackwind/servlet/StockInfoProvider

