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.