Nokia 9210 Service Manual

Page of 16
How to develop Java
TM
 Applications for the Nokia 9210 Communicator
Version 1.1
Copyright © 2001. Nokia Mobile phones. All rights reserved.
15
application files to be copied to the right folder of the device are listed.  The file Helloworld.pkg
with added row numbers is listed below:
1 &EN
2 #{"Helloworld"},(0x10001122),1,0,0,TYPE=SISAPP
3 "Helloworld.aif"-"!:\system\apps\Helloworld\Helloworld.aif"
4 "Helloworld.txt"-"!:\system\apps\Helloworld\Helloworld.txt"
5 "Helloworld.mbm"-"!:\system\apps\Helloworld\Helloworld.mbm"
6 "Helloworld.class"-"!:\system\apps\Helloworld\Helloworld.class"
7 "Helloworld.app"-"!:\system\apps\Helloworld\Helloworld.app"
In the first row is specified the language variants which are supported; in this case the only
supported language is English. In row 2 is set the name of the application, UID and major and
minor build numbers and also the installation type is set. The UID number in the .pkg file must
be same as that set in the AIF Builder file. More information can be found in the SDK
documentation (check "Application Installation Guide"). Lines 3-7 indicate which files are copied
and to where.
In this case the command for making the .sis file would be:
c:\Symbian\6.0\NokiaJava\erj\examples\Helloworld\>makesis Helloworld.pkg
and as an output one would get the file Helloworld.sis. This installation file contains all files
listed in the .pkg file. The .sis file can be copied to the device by using the infrared port or cable
connection (or applications can be even downloaded from the Internet). The Helloworld
application can now be installed by opening the .sis file in the device. After installing one should
find the self-made Helloworld icon in the Extras screen. The application can now be launched by
pressing the Open button.
For running this application one should remember that certain Java classes should be copied to
the device, if they are not present. The file \system\Java\ext\cawt.jar should be present. This
packet contains Symbian's own Java classes, which are used in all the SDK example applications.
Developers don't have to use the classes in cawt.jar, but there is useful classes for making use of
basic UI components like Menus and Command Buttons.
5.  FURTHER INFORMATION
1.  Nokia 9210 Style Guide (included in the SDK CD-ROM)
2.  Java Developer's Guide for Crystal (included in the SDK CD-ROM)
3.  Forum Nokia Web Site 
http://www.forum.nokia.com
4.  Java Web Site 
http://java.sun.com
5.  Symbian Developer Net 
http://www.symbiandevnet.com
6.  Professional Symbian Programming, Martin Tasker et al., Wrox Press Ltd., 2000
7.  Example applications included in the SDK (C:\Symbian\6.0\NokiaJava\erj\examples)
8.  Personal Java Web Site 
http://java.sun.com/products/personaljava/spec-1-1-1/index.html