Sorry about the red box, but we really need you to update your browser. Read this excellent article if you're wondering why we are no longer supporting this browser version. Go to Browse Happy for browser suggestions and how to update.

Creating a BlackBerry application project

When you run a BlackBerry application project that does not contain a public static method, the project is treated as a library application project.

  1. On the File menu, click New > BlackBerry Project.
  2. In the Project name field, type a name for the project.
  3. Select Create new project in workspace.
  4. Complete one of the following tasks:
    • To specify a specific JRE, select Use a project specific JRE.
    • To specify the default JRE in the workspace, select Use default JRE.
  5. Click Next.
  6. Click Finish.

Create a Java source file in a BlackBerry application project

  1. In the Package Explorer view, expand a BlackBerry application project.
  2. Right-click the src folder and select New > Class.
  3. In the Name field, type a name for the .java file.
  4. Click Finish.

Import a BlackBerry application project from an existing workspace

You can import a BlackBerry application project from the following development environments into Eclipse by using the BlackBerry Java Plug-in for Eclipse:
  • BlackBerry Java Development Environment.
  • Eclipse and the BlackBerry JDE Plug-in 1.0.

You cannot export a BlackBerry application project to the BlackBerry Java Plug-in for Eclipse 1.0 because project files (.jdp) and workspace files (.jdw) are no longer supported.

  1. On the File menu, click Import.
  2. In the Import dialog box, expand the BlackBerry folder.
  3. Select Import Legacy BlackBerry Projects.
  4. Click Next.
  5. Complete one of the following tasks:
    • To specify a specific JRE,select Use a project specific JRE.
    • To specify the default JRE in the workspace, select Use default JRE.
  6. In the BlackBerry Workspace field, browse to a BlackBerry workspace (.jdw) file.
  7. Select the projects that you want to import.
  8. Complete one of the following tasks:
    • To create a copy of the imported projects in the Eclipse workspace, select Copy BlackBerry projects into workspace.
    • To link to the original location of the imported projects, clear Copy BlackBerry projects into workspace.
  9. Click Finish.

Import a BlackBerry Java Plug-in for Eclipse sample application

  1. On the File menu, click Import.
  2. In the Import dialog box, expand the BlackBerry folder.
  3. Select Import BlackBerry Samples.
  4. Click Next.
  5. Complete one of the following tasks:
    • To specify a specific JRE, select Use a project specific JRE.
    • To specify the default JRE in the workspace, select Use default JRE.
  6. In the BlackBerry Projects dialog box, select the sample applications that you want to import.
  7. Click Finish.

Import a file into a BlackBerry application project

  1. In the Package Explorer view, select a BlackBerry application project.
  2. Right-click the project and click Import.
  3. Expand the General folder.
  4. Select the File System folder.
  5. Click Next.
  6. In the From directory dialog box, browse to the location of the source files and select the files that you want to import.
  7. In the Into folder field, browse to the location where you want to save the files.
  8. In the Options section, select the appropriate options.
  9. Click Finish.

Delete a file from a BlackBerry application project

  1. In the Navigator view, select a file in a BlackBerry application project.
  2. Right-click the file and click Delete.
  3. Click OK.

Change the properties of a BlackBerry application project

The properties of a BlackBerry application project are contained in the BlackBerry_App_Descriptor.xml file.

The BlackBerry_App_Descriptor.xml file is located in the root of the project. A change to the BlackBerry_App_Descriptor.xml file does not trigger a Java build and does not package a BlackBerry application project.

  1. In the Package Explorer view, expand a BlackBerry application project.
  2. Double-click the BlackBerry_App_Descriptor.xml file.
  3. Change the properties and save the file.