Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Use the RAPC compiler

by Retired ‎02-16-2010 11:11 AM - edited ‎02-18-2010 12:13 PM (11,431 Views)


This article applies to the BlackBerry® Java™ Development Environment (JDE).


RAPC is the command line compiler that is used to compile JAVA files into COD files that you can load on the BlackBerry wireless device. To find the compiler, search for rapc.exe in the bin directory. RAPC takes a number of arguments from the command line, and can be your link to the JDE compiler. It takes either JAVA source files or a JAR file, compiles them, and then creates a compressed COD file, which the simulator or the device can run. Here are some of the arguments that rapc.exe accepts:

  • import= (specify the RIM APIs and other dependent libraries)
  • codename= (use the application name -- same as the JAR file)
  • -midlet (if it is a MIDlet)
  • jad= (specify the JAD file name)
  • <path>\filename_1.java <path>\filename_2.java ... (if compiling from java files)
  • <path>\JAR_filename.jar (if compiling from a JAR file)

If you build the sample applications in the BlackBerry JDE, you can see the RAPC command line in the lower window.

Users Online
Currently online: 36 members 5,141 guests
Please welcome our newest community members: