Thursday, September 15, 2005

Nokia 6600 with NetBeans 4.1

I recently spent about 10 hours getting this to work, so if somebody is in the same pickle as I was, here is the way I got it running.

What you need to download:
-- Java SDK 1.4.2 from java.sun.com
-- NetBeans 4.1 and NetBeans Mobility Pack from www.netbeans.org
-- Nokia Developer Suite for Series 60 from forum.nokia.com (registration required).

Installation:
1. Install the Java SDK and NetBeans.
2. Install the Mobility Pack
3. Install Nokia Developer Suite as a stand alone application.

When installing the Nokia stuff, you might select the NetBeans option if you like, it just won't help very much.

Configuration:
1. In NetBeans, go to Tools->Platform Manager
2. Add a new Platform.
3. Select the directory of NOKIA_INSTALL_DIR\Devices\Nokia_Prototype_SDK_2_0
4. Create a new mobile application project (if you haven't already)
5. In the Project Properties, Nokia_Prototype_SDK_2_0 should now be available as a selectable platform.
6. For device, select Prototype_2_0_S60_MIDP_Emulator.

There seams to be something wrong with the how the Prototype package reports its abilities to NetBeans. As you can see, only the CLDC version 1.1 is available for selection. However, the Nokia 6600 runs on MIDP 2.0 and CLDC 1.0...

7. Still in the Properties window, under Application Descriptor->Attributes. Add a new attribute. Select MicroEdition-Configuration, and add the value CLDC 1.0.

... I know. All logic will tell you to only set the value to 1.0 but believe me; I tried and it didn't work. Set the value to CLDC 1.0.


Now you should be all set. You can run your apps in the emulator by the regular Debug button in NetBeans and the project's dist-directory will contain a JAR file that can run on your phone.

If you have questions about programming your Nokia, the number one resource is the Forum Nokia's discussion groups

Good Luck!