Eclipse and NetBeans
Programmer’s Guide
Table of Contents
1 Overview.................................................................................1
1.1 Document Conventions........................................................2
1.2 Special Notes........................................................................2
2 Working with Eclipse 3.4 SDK and IBM WEME..................3
2.1 Configuring Device..............................................................3
Downloading IBM WEME (J9 JVM)........................................... 3
Installing JVM .............................................................................. 3
2.2 Configuring Development Computer...................................4
Installing Java Runtime Environment (JRE) ................................ 4
Installing Eclipse 3.4 SDK (IDE) ................................................. 4
Installing Eclipse J9 SDK Plugin.................................................. 5
Configuring a J9 JRE.................................................................... 6
2.3 Creating a Java Project.......................................................10
2.4 Adding Reference Libraries...............................................11
2.5 Deploying Java Application...............................................12
2.6 Running Java application...................................................12
3 Working with NetBeans IDE and CrE-ME JVM .................13
3.1 Configuring Device............................................................13
Installing CrE-ME JVM ............................................................. 13
3.2 Configuring Development Computer.................................13
Installing Java Runtime Environment (JRE) .............................. 13
Installing NetBeans IDE............................................................. 13
Installing CrE-ME Developper Support ..................................... 13
Configuring NetBeans IDE......................................................... 13
3.3 Creating a Project...............................................................16
3.4 Adding Reference Libraries...............................................18
3.5 Deploying and Running Java Application .........................18
Eclipse and NetBeans Programmer’s Guide
i
1 Overview
This document is a guide to start working with following environments for
“Motorola EMDK for Java” development.
• Eclipse 3.4 SDK (IDE) with WEME (IBM J9 JVM)
• NetBeans IDE 6.0 with NSIcom CrE-ME JVM
Please refer documentation of each IDEs and JVMs for their usage.
To make EMDK for Java development effort easier, use of an IDE is needed.
Each JVM provider has their own recommendations on IDEs which are described
in this document.
Eclipse and NetBeans Programmer’s Guide
1
1.1 Document Conventions
The following conventions are used in this document:
• Italics are used to highlight the following:
Chapters and sections in this and related documents
Dialog box, window and screen names
Drop-down list and list box names
Check box and radio button names
Icons on a screen.
• Bold text is used to highlight the following:
Key names on a keypad
Button names on a screen or window.
• bullets (•) indicate:
Action items
Lists of alternatives
Lists of required steps that are not necessarily sequential
Sequential lists appear as numbered lists.
Note: The Note specifies content which has special interest or importance to
the reader.
1.2 Special Notes
• As of the writing of this document, links provided in this document for third
party web sites are valid. But Motorola has no control over the continuation of
them.
• To make EMDK for Java development effort easier, use of an IDE is needed.
Each JVM provider has their own recommendations on IDEs which are
described in this document.
• This document is only a guideline to start using Eclipse and NetBeans
environments with EMDK for Java. Please refer the respective programmer’s
guide for each IDE for detailed information.
Eclipse and NetBeans Programmer’s Guide
2
2 Working with Eclipse 3.4 SDK and IBM
WEME
2.1 Configuring Device
To run EMDK for Java applications, it is essential to install a JVM which is
described in this section.
Downloading IBM WEME (J9 JVM)
The JVMs for platforms supported by the Motorola products are available in a
package called IBM Workplace Client Technology, Micro Edition (WEME).
Information on this package is available at
http://www.ibm.com/software/wireless/weme/
To obtain a JVM, contact the IBM representative. The contact details are
available at the WEME trial download homepage mentioned above.
Installing JVM
1. Install the package on the development computer.
2. Navigate to installation folder and locate pre-built JVM ZIP file in
corresponding sub-folder. For example, "C:\Program
Files\IBM\WEME\runtimes\61\wince50-arm-ppro10\" folder contains the ZIP
file "weme-wince50-arm-ppro10_6.1.1.20061110-161633.zip".
3. Extract this ZIP file.
4. Create a folder \Program Files\J9\PPRO10\ in the device (\Program
Files\J9\PPRO11\ for Personal Profile 1.1 JVMs).
5. Copy the contents of the extract (lib and bin folders) to the created folder on
the mobile device.
Eclipse and NetBeans Programmer’s Guide
3