The SDK provides a wizard for creating new projects quickly and easily. Most project properties can be edited later on. CDC core, FP, and PBP APIs are automatically included in every CDC project.
Select File > New Project.
The New Project wizard opens.
The Name and Location page has the following fields:
Project Name. The name you supply is the default name for the Main class, if you use one.
Project Location. Browse to the project location. The default is /JavaMESDKProjects.
Project Folder. This value is extrapolated from the Name and Location entries.
Set as Main Project. Check this box to set this project as main. Toolbar actions, such as Build and Run, operate on the main project. The main project is displayed in bold font in the project tree.
Create Main Class. If you want to create a sample Main class in the project, check the box and supply a project name. If the box is not checked, the project will not have a Main class.
Select the platform, a device, and the profile. Click Finish.
If an AGUI device is selected, the AGUI API is added to the project.
To run the new project follow the steps in Running a Project, except you can select your new project instead of a sample project.
When you are finished viewing the application, go to the emulator’s Application menu and select Exit to close the emulator and stop the execution of the project’s build script.
Note - Once the emulator is launched, it runs as an independent process. Pressing the red stop button in the Output window terminates the build script, but it does not close the emulator. Likewise, closing the SDK does not affect the emulator. In the emulator, select Application > Exit to ensure that both the emulator and the project build process close.
To modify the project, right-click on the project node and select Properties.