javaeclipsejava-menokiajava-wireless-toolkit

How to create J2ME midlets for Nokia using Eclipse


Nokia has stopped offering its Developer's Suite, relying on other IDEs, including Eclipse. Meanwhile, Nokia changed its own development tools again and EclipseMe has also changed. This leaves most documentation irrelevant.

I want to know what does it take to make a simple Hello-World?

(I already found out myself, so this is a Q&A for other people to use)


Solution

  • Here's what's needed to make a simple hello world -

    1. Get Eclipse IDE for Java. I used Ganymede. Set it up.
    2. Get Sun's Wireless Toolkit. I used 2.5.2. Install it.
    3. Get Nokia's SDK (found here), in my case for S40 6230i Edition, and install it choosing the option to integrate with Sun's WTK
    4. Follow the instructions at http://www.eclipseme.org/ to download and install Mobile Tools Java (MTJ). I used version 1.7.9.
    5. When configuring devices profiles in MTJ (inside Eclipse) use the Nokia device from the WTK folder and NOT from Nokia's folder.
    6. Set the WTK root to the main installation folder - for instance c:\WTK2.5.2; Note that the WTK installer creates other folders apparently for backward compatibility.
    7. Get Antenna and set its location in MTJ's property page (in Eclipse).

    Here's an HelloWorld sample to test the configuration.

    Note: It worked for me on WindowsXP. Also note: This should work for S60 as well. Just replace the S40 SDK in phase 3 with S60's.