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.
10
command makes an installation package of the files. During these processes the application also
gets its own unique identifier (UID) and icons.
Every Symbian EPOC application should have its own UID. This allows the operating system to
distinguish files associated with that application from files with other applications. A UID is a
32-bit number, which you get as you need from Symbian (More info can be found on
www.symbiandevnet.com).
According to Figure 2, the AIF Builder tool needs a UID, an application name and bitmap pictures
and as a result it gives us:
1.  An .aif file, Application Information File
2.  An .app file, Application file, containing the UID
3.  A .txt file, command line parameters for pjava.exe (a JVM executable file)
4.  An .mbm file, multi bitmap file for icons
The first step is to start the AIF Builder tool from Start Menu -> Programs -> Symbian 6.0 SDKs
-> Development Tools -> AIF Builder. Then choose File -> New from the menu.
Files for an application must be located in a directory 
\System\Apps\app_name\, 
on any drive,
where 
app_name
 is the application's name. When working with the Java version of the emulator
you should create a suitable directory manually yourself. Any name may be assigned to
app_name — there is no requirement that it must have the same name as the class or jar file. In
Figure 3 can be seen the starting screen after creating a new AIF Builder file.
You can see the application's details in Figure 3. The programming language is chosen to be
Java, the Application Name is Helloworld, the UID is set to be 0x10001122 (in hexadecimal form;
it could also be in decimal form) and finally the Java Command Line Text "-
Dcom.symbian.appName="Hello World" Helloworld". The application name is set in the
command line text and the Helloworld word in the end tells the application's main class name to
the pjava.exe. There could also be other definitions, for example additional classes to the
classpath variable, a working directory, etc.