Step 1: Create a new project
To create a new project, do the following:
- Download the MIDlet source files. Extract the archive to the hard disk.
- Launch NetBeans.
-
Select File > New Project and there Java ME > Mobile Application.
Click Next.
-
Enter the name of the project and set its location.
Click Next.
-
Select the default platform and its configurations according to the platforms you have installed.
Click Finish.
-
Drag and drop the source files LocationMIDlet.java and GoogleMaps.java to your project's source package in the Projects view.
-
Right-click on the project in the Projects view and select Properties. Select the Application Descriptor category and the MIDlets tab. Click Add and add the LocationMIDlet into the descriptor.