BlackBerry
 





Home > Worldwide Developers > Java Knowledge Base Search > Knowledge Base Article

Java Knowledge Base

Knowledge Base Article

Using the RAPC compiler

Article Information: RAPC is the command line compiler that is used to compile .java files into .cod files that you can load onto the handheld. You can find the compiler by searching for rapc.exe in the bin directory. RAPC takes in a number of arguments from the command line, and can be your link into the JDE compiler. It takes in either .java source files or a .jar file, compiles them, and then creates a compressed .cod file, which the simulator or the handheld can run. Here are some of the arguments that rapc.exe accepts:

(a) import= (specify the RIM APIs and other dependent libraries)
(b) codename= (use the application name – same as the .jar file)
(c) -midlet (if it is a MIDlet)
(d) jad= (specify the JAD file name)
(e) \filename_1.java \filename_2.java ... (if compiling from java files)
(f) \JAR_filename.jar (if compiling from a .jar file)

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


More Information:

       
 Legal | Copyright © 2002 Research In Motion Limited, unless otherwise noted.