Blackberry JAVA DEVELOPMENT ENVIRONMENT Manuale introduttivo - Pagina 26
Sfoglia online o scarica il pdf Manuale introduttivo per Software Blackberry JAVA DEVELOPMENT ENVIRONMENT. Blackberry JAVA DEVELOPMENT ENVIRONMENT 32. Version 4.7.0
Anche per Blackberry JAVA DEVELOPMENT ENVIRONMENT: Nota di rilascio (8 pagine)
Getting started guide
If a BlackBerry device application contains more than 64 KB of bytecode or resource data, the BlackBerry® Java®
Development Environment or the BlackBerry® JDE Plug-in for Eclipse™ creates a .cod file that contains sibling
.cod files. To determine if a .cod file contains sibling .cod files, extract the contents of the .cod file. Any .cod files
within the original .cod file are the sibling files.
Testing a BlackBerry device application on a BlackBerry Smartphone
Simulator
After you develop and compile your application, you can test it on the BlackBerry® smartphone. The most common
first step is to set the BlackBerry® Java® Development Environment or the BlackBerry® JDE Plug-in for Eclipse™
to use a BlackBerry Smartphone Simulator for testing. The BlackBerry Smartphone Simulators run the same Java
code as the live BlackBerry smartphones, so the BlackBerry Smartphone Simulators provide an accurate
environment for testing how applications will function on a live BlackBerry smartphone. Each version of the
BlackBerry JDE comes with the BlackBerry Smartphone Simulators that were available when that version of the
BlackBerry® Java® Development Environment or the BlackBerry® JDE Plug-in for Eclipse™ was made public. You
can download additional BlackBerry Smartphone Simulators from the BlackBerry Developer Zone at http://
www.blackberry.com/developers/index.shtml.
Testing a BlackBerry device application on a BlackBerry smartphone
To load, remove, or save .cod files when testing BlackBerry® device applications, use the JavaLoader.exe tool. For
production applications, use the BlackBerry® Desktop Software. The JavaLoader.exe tool is part of the
BlackBerry® Java® Development Environment and the BlackBerry® JDE Plug-in for Eclipse™.
The Javaloader.exe tool uses the following parameters:
Parameter
Description
port
A BlackBerry smartphone PIN if the BlackBerry smartphone connects to a USB port. You must also specify the -usb
option.
password
This paramter specifies the password for the BlackBerry smartphone, if a password for the BlackBerry smartphone is
set.
filename
The name of the .cod file for the BlackBerry device application.
1.
Connect the BlackBerry smartphone to the computer.
2. Open a command prompt, and navigate to the location of the JavaLoader.exe file.
3. Perform one of the following actions:
Task
Load a BlackBerry device application .cod file on
the BlackBerry smartphone.
26
Steps
>
Issue a command using the following format:
javaloader [-u] load .cod file
For example: javaloader.exe -u load My.cod
JavaLoader loads the .cod files listed in the .jad file on the BlackBerry smartphone
and stores the .cod files in a CodeModuleGroup.