The BlackBerry JDE converts an existing MIDlet (JAD and JAR file) into a COD file to be used on a BlackBerry device. Complete the following steps:
Create a directory on your hard disk drive and copy the MIDlet JAD and JAR files to this location.
In the BlackBerry JDE, select File > New Workspace.
Change the location to the folder created in step 1, type a name for the new workspace, and click OK.
Once the workspace is loaded, right-click Create new project in [NameofWorkspace].jdw. Place the project that will be created in the same location as the folder in step 1. Type a name for the project and click OK.
Once the project is displayed, right-click Add File to Project.
From the Add Files to [Name of Project] screen, in the Files of Type drop-down list, select All Files.
Change to the folder created in step 1, select both the JAD and JAR files from the MIDlet, and click Open.
Both the JAD and JAR files appear under the project name within the tree.
Right-click the project name and select Properties.
On the Application tab, from the Project Type drop-down menu, select MIDlet.
Under the Name of main MIDlet class title, type the main MIDlet class and click OK.
The fully qualified package and class name are required here.
From the main menu, select File > Build (or press F7) to build the MIDlet.
The compiled COD file will now reside in the directory created in step 1.