j2me MIDP Device Fragmentation Tutorial with Marv The Miner
http://www.netbeans.org/kb/articles/tutorial-j2mefragmentation-40.html
Feedback
This tutorial shows how to configure the IDE to work with existing JavaTM 2, Micro Edition Platform (J2METM Platform) MIDP projects and, specifically, how to use the NetBeansTM IDE's built-in solution to the device fragmentation problem. Following this tutorial from start to finish will illustrate the following:
- How to port an existing fragmented MIDP project to NetBeans
- How to use the IDE's built-in device fragmentation solution
The example program this tutorial uses is the popular j2me game "Marv The Miner," which was released under GPL and written to run on several different mobile platforms.
This tutorial should take approximately two hours to complete and covers the following topics:
- Import sources from an existing MIDP project.
- Create and customize project configurations for each distribution Jar.
- Mark pieces of source code as being specific to each configuration.
- Build several distribution Jars for the project.
- Use external emulators from within the IDE.
To follow this tutorial you need the MarvTheMiner_120_all.zip file, which contains the original source files of the program. Click here and download "Marv the Miner v1.2.0 (including level editor)" to obtain the source files.
- Setting Up Your Environment
- Obtaining and Installing the Required Software
- Starting the IDE
- Obtaining the Required Source Files
- Developing the Marv The Miner Application in NetBeans
- Import Existing Sources
- Creating Project Configurations
- Customize Project Settings for Configurations
- Create Custom Code Blocks for each Configuration
- Building and Executing the Marv the Miner Application
- Exploring Configurations Further
- Using Non-UEI compliant Emulator Platforms
Setting Up Your Environment
This section describes how to set up your system before starting the tutorial.
| Obtaining and Installing the Required Software |
The following software is required for the example:
Use the instructions provided at the download sites to install the software. | ||||||||||||
| Starting the IDE |
To start the NetBeans IDE:
The IDE-install-path variable stands for the path to the IDE's home directory. | ||||||||||||
| Obtaining the Required Source Files |
The MarvTheMiner_120_all.zip file contains the source files of the original Marv The Miner application. The zip includes a MarvTheMiner directory, which contains the src and res subdirectories that you will use in this tutorial. To unzip the MarvTheMiner_120_all.zip file:
|






