Compile And Run On A Pc; Run On The Module With Manual Start; Run On The Module With Autostart - Siemens TC45 User Manual

Cellular engine
Hide thumbs Also See for TC45:
Table of Contents

Advertisement

TC45 TC45 JAVA User's Guide
Confidential / Released

9.2 Compile and run on a PC

· Launch a Command Prompt. This can be done from the Programs menu or by typing
"cmd" at the Run... prompt in the Start menu.
· Change to the directory where the code to be compiled is kept.
· Compile the program with the SDK. An example of a build batch file can be in a sample
program directory found in the examples directory,
...\Siemens\SMTK\TC45\IMPSiemens\src\examples.
· If the compile was successful the program can be run from the command line. Example of
a run batch file can be found in the examples directory listed above.
The batch files for compiling and running the samples are using the system environment
variables IMP_JDK_DIR that points to the root directory of the installed JDK and IMP_DIR
which points to the root directory of the Siemens-SMTK-TC45-IMP installation. The
installation process sets these environment variables. A modification is usually not
necessary. They might be modified (e.g. for switching to a different JDK) via the advanced
system properties as requested.
In this scenario, any AT commands issued by the application are sent to the module by the
emulator over ASC0.

9.3 Run on the module with manual start

· The application can be compiled at the prompt as discussed in Section 9.2 or in an IDE.
· Transfer the .jar and/or .jad file from the development platform to the desired directory on
the module using the Module Exchange Suite or OTA provisioning. Chapter 7 explains
how to download your application to the module.
· Start a terminal program and connect to ASC0.
· The command at^sjra is used to start the application and is sent to the module via your
terminal program. Either the application can be started by .jar or by .jad file. When you
start by .jad file the values of parameters have to be correct.
Example:
In your terminal program enter: at^sjra=a:/java/jam/example/helloworld/helloworld.jar
If you prefer to start with jad-File: at^sjra=a:/java/jam/example/helloworld/helloworld.jad
The Flash file system on the module is referenced by "a:".

9.4 Run on the module with Autostart

· The application can be compiled at the prompt as discussed in Section 9.2 or in an SMTK
integrated IDE.
· Transfer the .jar and/or .jad file from the development platform to the desired directory on
the module using the Module Exchange Suite or OTA provisioning. See Chapter 7.
TC45_JAVA User's Guide_V02
Page 47 of 72
30.06.2003

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents