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.
- On the File menu, click New > BlackBerry Project.
- In the Project name field, type a name for the project.
- Select Create new project in workspace.
- 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.
- Click Next.
- Click Finish.
Create a Java source file in a BlackBerry application project
- In the Package Explorer view, expand a BlackBerry application project.
- Right-click the src folder and select New > Class.
- In the Name field, type a name for the .java file.
- 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.
- On the File menu, click Import.
- In the Import dialog box, expand the BlackBerry folder.
- Select Import Legacy BlackBerry Projects.
- Click Next.
- 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.
- In the BlackBerry Workspace field, browse to a BlackBerry workspace (.jdw) file.
- Select the projects that you want to import.
- 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.
- Click Finish.
Import a BlackBerry Java Plug-in for Eclipse sample application
- On the File menu, click Import.
- In the Import dialog box, expand the BlackBerry folder.
- Select Import BlackBerry Samples.
- Click Next.
- 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.
- In the BlackBerry Projects dialog box, select the sample applications that you want to import.
- Click Finish.
Import a file into a BlackBerry application project
- In the Package Explorer view, select a BlackBerry application project.
- Right-click the project and click Import.
- Expand the General folder.
- Select the File System folder.
- Click Next.
- In the From directory dialog box, browse to the location of the source files and select the files that you want to import.
- In the Into folder field, browse to the location where you want to save the files.
- In the Options section, select the appropriate options.
- Click Finish.
Delete a file from a BlackBerry application project
- In the Navigator view, select a file in a BlackBerry application project.
- Right-click the file and click Delete.
- 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.
- In the Package Explorer view, expand a BlackBerry application project.
- Double-click the BlackBerry_App_Descriptor.xml file.
- Change the properties and save the file.