Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Develop mobile apps with Personal Information Management

Configure the Eclipse SDK to develop a J9/JSR-75 PIM application

Anderson Fraga (anderson_fraga@ca.ibm.com), Software Engineer, IBM
Anderson Fraga is a software engineer at IBM Canada. He is a member of the J9 Java Class Libraries team and works with more platforms than he could ever imagine. You can contact Anderson at anderson_fraga@ca.ibm.com.

Summary:  This tutorial takes you through the steps required to successfully build a Personal Information Management (PIM) Mobile Information Device Profile 2.0 (MIDP 2.0) application using well-known products, such as Eclipse, the J9 Java™ Virtual Machine, and the JSR-75 PIM implementation.

Date:  18 Jul 2006
Level:  Intermediate PDF:  A4 and Letter (902 KB | 33 pages)Get Adobe® Reader®

Activity:  8963 views
Comments:  

Installation and configuration

Install the Eclipse SDK

I use Eclipse as the IDE to develop the PIM application. After you have downloaded the Eclipse SDK, extract the zip file to the location where you want to install the application. You don't need any further installation. You may want to create a link to eclipse.exe on your desktop after you unzip the SDK.

Install MIDP 2.0 and PIM Optional Package

The IBM J9 Java Virtual Machine and class libraries are available through WebSphere® Everyplace Micro Environment. To download WebSphere Everyplace Micro Environment, open Eclipse and follow these instructions:

  1. On the Eclipse main menu, navigate to Help > Software Updates > Find and Install. On the Install/Update window, select Search for new features to install and click Next (see Figure 1).

    Figure 1. Eclipse's Install/Update window
    Eclipse's Install/Update window

  2. On the Install/Update window, you'll need to add two new remote sites by clicking New Remote Site (see Figure 2).

    Figure 2. Eclipse's New Remote Site window
    Eclipse's New Remote Site window

    Here are the names and URLs of the new remote sites you'll need to add:

  3. Add a check mark to the new remote sites you just added and click Finish.

    Figure 3. Select new remote sites
    Select New Remote Sites

  4. Expand IBM WebSphere Everyplace Micro Environment, expand Technologies, and add a check mark to WEME Windows Mobile 2003 ARM PDAP-PIM (Runtime 2.2), as Figure 4 shows.

    Figure 4. PIM Optional Package install
    PIM Optional Package install

  5. Also, expand IBM WebSphere Everyplace Micro Environment, expand Runtimes (Individual), and add a check mark in WEME Windows x86 MIDP 2.0 (Runtime 2.2) 5.7.1 as well as another check mark in WEME Windows Mobile 2003 ARM MIDP 2.0 (Runtime 2.2) 5.7.2 (see Figure 5).

    Figure 5. WebSphere Everyplace Micro Environment installation
    WebSphere Everyplace Micro Environment installation

    Click Next and perform the installations.

    You may be asked to restart the workbench after the installations are complete; select Yes.


Install J9 Launcher plug-in

The J9 Launcher plug-in lets Eclipse recognize J9's VM as a valid Java Runtime Environment (JRE); it is available through the IBM WebSphere Everyplace Device Developer Tooling. To install the J9 Launcher plug-in:

  1. On the Eclipse main menu, go to Help > Software Updates > Find and Install. On the Install/Update window, select Search for new features to install and click Next (see Figure 6).

    Figure 6. Eclipse's Install/Update window
    Eclipse's Install/Update window

  2. On the Install/Update window, you will need to add a new remote site by clicking New Remote Site.

    Figure 7. Eclipse's New Remote Site window
    Eclipse's New Remote Site window

    The name and URL of the new remote site you'll need to add is:

  3. Add a check mark to the new remote sites you just added and click Finish.

    Figure 8. Select new remote site
    Select New Remote Site

  4. Expand IBM WebSphere Everyplace Device Developer Tooling, expand Tools, and add a check mark to WSDD J9 VM Launching 5.7.1.

    Figure 9. J9 Launcher plug-in install
    J9 Launcher Plug-in Install

    Click Next and perform the installation.

    You may be asked to restart the workbench after the installation process is complete; select Yes.

Configure Eclipse to use J9

For Eclipse to use J9, you must first install the J9 Launcher plug-in in the previous section.

To configure Eclipse to use J9:

  1. Select Window > Preferences. The Preferences window opens. Expand the tree on the left panel and navigate to Java > Installed JREs, as Figure 10 shows.

    Figure 10. Eclipse Preferences window
    Eclipse Preferences window

  2. Click Add to open the Add JRE window. On this window, set the options as follows:
    • JRE Type: Select J9 VM
    • JRE Name: Type "J9 MIDP 2.0" or any name you'd like to use to identify this JRE
    • JRE home directory: Browse to the directory where Eclipse installed WebSphere Everyplace Micro Environment (it should be in "C:\Program Files\ive2.2\runtimes\win32\x86\midp20").
    • Default VM Arguments: type "-jcl:midp20"

    Also, uncheck the option Use default system libraries, click Add External JARs, and add the following external classes:

    • WebSphere Everyplace Micro Environment MIDP 2.0 classes.zip: You can find this in "C:\Program Files\ive-2.2\runtimes\win32\x86\midp20\classes.zip".
    • PDAP Optional Package jar file: You can find this in "C:\Program Files\ive-2.2\runtimes\wm2003\arm\midp20\lib\jclMidp20\ext\pim.jar".


    Figure 11. Edit JRE window
    Edit JRE window

    You should easily find the directories above, granted you successfully followed the instructions in the Install MIDP 2.0 and PIM optional package section. However, if you do not find the path, try searching your file system for pim.jar and it will point you to the correct path.

  3. Click OK. You will see that you added the J9 2.2 MIDP 2.0 and can use it on your MIDP 2.0 PIM application.

    Figure 12. JRE window
    JRE window

    Click OK again to go back to the Eclipse workbench.

2 of 9 | Previous | Next

Comments



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Java technology, WebSphere
ArticleID=146833
TutorialTitle=Develop mobile apps with Personal Information Management
publish-date=07182006
author1-email=anderson_fraga@ca.ibm.com
author1-email-cc=

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).