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.
8
Figure 2 gives a general overview on how to develop applications for the Nokia 9210
Communicator. Basically it doesn't differ from writing Java code. Tools for running the
application in the emulator or in the target device are included in the SDK.
FIGURE 2. Java application creation process for the Nokia 9210 Communicator
Writing and compiling Java source code is as usual; code files can be archived using the jar
command (for example jar cf MyApp.jar *.class). Also .zip format can be used. Add-on
applications can be made visible in the Extras screen in the Nokia 9210 Communicator. The
applications should be installed on the !:\system\apps\<appname>\, where ! is the letter of the
imaginary drive (meaning either the Communicator's memory or Memory Card). When installing
the end-user has the opportunity to choose the destination drive of the installation.
Now in this small application we are using Symbian's own classes. The path of these classes
should be added to the classpath variable. This can be done by editing the classpath variable in
the autoexec.bat (Windows 98) or in Control Panel -> System -> Environment (Windows NT). For
example in Windows 98 the classpath variable could be as follows:
classpath=.;c:\jdk1.1.8\lib\classes.zip;c:\jdk1.1.8\lib\classes\class
es.zip; c:\jdk1.1.8\lib\classes\cawt.jar
.java
Java source files
Normal Java 
build process
javac
Java compiler
.class
Java class files
jar
Java packager
.jar
Jar file(s)
Other files
(audio, image, etc.)
makesis
<app>.sis
Installation 
file
aifbuilder
<app>.aif
Application 
information file
<app>.app
Symbian
application file
<app>.txt
Command line 
parameters for JVM
UID, application name, multi bitmap file
Symbian platform
specific process
<app>.pkg
List of components