PreviousNext

Build projects

When you build a project, the BlackBerry® IDE compiles your source files into Java® bytecode, performs preverification, and then packages the classes into a .cod file.

Note: In Java ME, bytecode verification is divided into two stages. The compiled code is preverified before it is loaded onto the BlackBerry device, so the BlackBerry device only has to perform basic verification as classes are loaded. The BlackBerry IDE performs preverification automatically when it builds projects.

When you build a project, the BlackBerry IDE also builds any libraries on which the project depends, if necessary.
Task
Steps

Build a project.

  1. In the Workspace files window, click the project folder.
  2. On the Build menu, click Build Selected.

Build all projects.

> On the Build menu, click Build All.

Note: To exclude projects from Build All, click the General tab on the project Properties window. Select Excluded from Build all.

Build all active projects.

  1. On the Project menu, click Set Active Projects.
  2. Select the check boxes beside the projects to activate.
  3. On the Build menu, click Build.

See "Activate and deactivate projects" for more information on setting active projects.

Note: Active projects appear in bold in the Workspace files view.

Stop a compilation.

> On the Build menu, click Stop Building.

By default, the compiled .cod file uses the project name. To change this name, double-click the project file, click the Build tab, and type the output file name.

Related topic


   BlackBerry