Home » Mobile & Cellphone » BlackBerry Guides » Using the BlackBerry Javaloader

Browse Guides & How-to's

 Help support the author (Andreas)

Using the BlackBerry Javaloader

Published: Andreas Wiebe, 19 January 2010 - 04:06

You can use the JavaLoader.exe file to perform low-level, debugging, or loading operations on a BlackBerry. JavaLoader.exe is a powerful tool that can be used for various administrative tasks on the BlackBerry, however most users (and admins too) find it difficult to use.

This guide is relevant for all USB java models (in theory serial/com port models are the same, but you must specify the port the device is attached to rather than USB)

Notes:

  • If you are looking for information on setting a BlackBerry back to factory settings (to remove security policies for example), please see Resetting a BlackBerry to Factory Settings
  • This guide only covers those JavaLoader utilities which we have experience with, if you have experience with the other utilities we'd be glad to add the use here (contact us please).
  • We use output redirection to save some of JavaLoader's output to a text file, to display on the screen rather than save to a file remove the "> file.txt" portion of the command.
  • These commands must be run from a Command shell (Win9x: Start --> Run --> command, Win2000+: Start --> Run --> cmd) and in the directory (folder) where javaloader.exe exists (example: C:\Program Files\Research In Motion\BlackBerry JDE 4.0bin).
  • WARNING: The Javaloader.exe tool should be handled with extreme care, particularly when used for wiping devices, loading modules, or removing modules. EndUserGuides.com, BlackBerryGuide.com, drewiebe.ca, and its affiliates take no responsibility in the use of this tool, use at your own risk. Please read our disclaimer for more information.

 

Details:

Obtaining JavaLoader.exe

JavaLoader.exe comes with the BlackBerry JDE, you can download it here: www.blackberry.com/developers/na/java/tools/index.shtml

You can also find JavaLoader.exe bundled with JL_Cmder, blackberryfreaks.com has this available here: http://www.blackberryfreaks.com/JL_Cmder.html

You must have the BlackBerry drivers (or BlackBerry Desktop Manager) installed for JavaLoader to work, you can obtain them here: https://www.blackberry.com/Downloads/browseSoftware.do

 

Description:

Usage: JavaLoader [-u] [-p <port>| <pin>] [-b <baud>] [-d0|-d1] [-w <password>] [-q] <command>

 

  • dir [-d] [-s]
  • deviceinfo
  • load ...
  • save ...
  • info [-d] ...
  • wipe [-f | -a]
  • erase [-f] ...
  • debugmode
  • eventlog
  • cleareventlog
  • settime
  • radio on|off
  • enum
  • siblinginfo <.cod file>
  • screenshot <.bmp file>
  • logstacktraces
  • resettofactory
  • recoverflash <size in bytes>
  • otasl load <type> file
  • otasl purge <type>
  • otasl state <state>

Examples:

Load a .cod file to the device:
javaloader -u load
(Note on dependencies: If you are loading many modules, load the child-modules first)

Erase a module from the device (caution is urged):
javaloader -u erase

Erase a module from the device (force if in use, extreme caution is urged):
javaloader -u erase -f

Wipe the device (considered a low-level format, caution is urged):
javaloader -u wipe

Save the device info to a text file (device.txt):
javaloader -u deviceinfo > device.txt

Save the eventlog to a text file (event.txt):
javaloader -u eventlog > event.txt

Save a listing of all modules on the device to a text file (dir.txt):
javaloader -u dir > dir.txt

Save a listing of all modules & Dependencies on the device to a text file (dir.txt):
javaloader -u dir -d > dir.txt

Save a listing of all modules & sub-modules on the device to a text file (dir.txt):
javaloader -u dir -s > dir.txt

Turn the device radio on:
javaloader -u radio on

Turn the device radio off:
javaloader -u radio off

Take a device screenshot:
javaloader -u screenshot test.bmp