Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 11:19, 5 March 2008.

Installing Java ME development tools for S60

From Forum Nokia Wiki

The combination of tools listed here (all free) has been tested by the writer to work for developing applications for S60 using Java ME. For future editors of this article: please make sure that your edits have been tested in practice, to prevent developer frustration.

Contents

Downloading the tools

tool recommended version download notes
a Java SE (Standard Edition) Development Kit (JDK) JDK 5.0 Update 14 (note: Java* 5.0 is the same as J2* 1.5.0) here (search for "JDK 5.0 Update 14") Needed by the following tool. When downloading, select the Windows platform, then select the "Windows Offline Installation" option (or if you're feeling more adventurous, the "Windows Online Installation" option). Save the installation file, then run it. The installation directory of the SDK is C:\Program Files\Java\jdk1.5.0_14, and that of the JRE that is part of the installation is C:\Program Files\Java\jre1.5.0_14. Accept these defaults.
the Sun Java Wireless Toolkit for CLDC 2.5.2 here (search for "Sun Java Wireless Toolkit 2.5.2 for CLDC") In the "Java (TM) Virtual Machine Location" phase of the installation, the latest JDK on your machine is automatically detected. If that is later than JDK 5 Update 14, then browse to the directory C:\Program Files\Java\jdk1.5.0_14. The default installation directory of the tool is C:\WTK2.5.2.
Nokia SymbianOS/S60 SDK for Java S60 3rd edition, Feature Pack 2, MIDP SDK Beta here You must be logged in to Forum Nokia in order to download the file. (Creating a Forum Nokia account is quick and free.) Unzip the downloaded file, nS60_jme_sdk_3rd_e_FP2_Beta.zip, into a directory, and run the unzipped setup.exe installer program. The default installation directory is C:\S60\devices\S60_3rd_MIDP_SDK_FP2_Beta. Accept this.
the Eclipse IDE 3.2.2 here Unzip the downloaded file, eclipse-SDK-3.2.2-win32.zip, into C:\Program Files\eclipse, or, if you prefer, to another directory. (The writer prefers to append the version number to the installation: C:\Program Files\eclipse-3.2.2 in this case.) To run the IDE, execute eclipse.exe, found in the main directory.
the EclipseME plugin for Eclipse 1.7.7 here This is the last EclipseME version that runs on top of Eclipse v3.2. Save the downloaded file, eclipseme.feature_1.7.7_site.zip, somewhere. Instructions for integrating the plugin with Eclipse are given below.
Java ME Developer's Library 2.2 here (search for "Java ME Developer's Library v2.1 (Eclipse plug-in)") Download the file Java_ME_Developers_Library_v2_2_eclipse_plugin.zip. Installation instructions below. This documentation is not absolutely necessary for development, but it is very useful. After you've installed it, it is available to you from Eclipse's Help function.


Note that in addition to Eclipse, Nokia also supports the NetBeans IDE (plus its Mobility Pack) for S60/Java ME development. See here for more details.

Configuring the tools

After downloading all the tools above, perform the following.

The Eclipse workspace directory

  1. Create a directory to be used as you Eclipse workspace directory, such as C:\some\path\eclipse_workspace\. (You can skip over this and accept the default workspace directory in the next step.)
  2. Start Eclipse. When asked for a workspace directory to use, give the directory you created, or accept the default. (The workspace can later be switched by select the menu item File | Switch Workspace.) Eclipse will now restart.

Integrating EclipseME with Eclipse

  1. Select the menu item Help | Software Updates | Find and Install.
  2. Select the radio button: Search for new features to install and press Next.
  3. Press the button New Archived Site. In the file selection dialog that appears, select the EclipseME installation file you downloaded, eclipseme.feature_1.7.7_site.zip.
  4. Back in the main dialog, make sure the eclipseme.feature_1.7.7_site.zip checkbox is the only one selected, and press Finish.
  5. Select the eclipseme.feature_1.7.7_site.zip checkbox and press Next.
  6. Select the I accept the terms in the license agreement radio button, and press Next.
  7. Make sure installation directory is the directory you unzipped Eclipse into (C:\Program Files\eclipse, or wherever you installed it), and press Finish.
  8. A JAR verification warning message is given. Don't worry, be happy. Press Install.
  9. Press Yes to restart Eclipse. Select the workspace again.

Configuring EclipseME

  1. Select the menu item Window | Preferences.
  2. Expand node J2ME and select Device Management.
  3. In the settings section of the dialog, press Import.
  4. In the new dialog, browse for the directory C:\S60\devices\S60_3rd_MIDP_SDK_FP2_Beta. Click Refresh.
  5. Make sure the S60Emulator and S60Device devices' checkboxes are both checked. Press Finish.
  6. Press Import again.
  7. In the new dialog, browse for the directory C:\WTK2.5.2 (or wherever you installed the Wireless Toolkit). Click Refresh.
  8. Make sure all the four devices' checkboxes are checked. Press Finish.
  9. Back in the main dialog, select DefaultColorPhone as the default device. (Selecting the S60Emulator choice will cause running a MIDlet to fail.)
  10. Back in the main dialog, press OK.

Configuring Eclipse's Java options

  1. In Eclipse, select the menu item Window | Preferences.
  2. Expand node Java | Build Path.
  3. For item Source and output folder, select the radio button Folders, and keep the defaults (src and bin).
  4. Expand node Java | Debug.
  5. Uncheck Suspend execution on uncaught exceptions.
  6. Uncheck Suspend execution on compilation errors.
  7. Set Debugger timeout (ms) to 15000.
  8. Press OK.

Installing Java ME Developer's Library

  1. Close Eclipse.
  2. Unzip the file Java_ME_Developers_Library_v2_2_eclipse_plugin.zip you downloaded.
  3. Copy the unzipped file com.nokia.java_developers_library_v2.2_1.0.0.jar into your Eclipse installation directory's plugins folder.
  4. Start Eclipse again. The Java ME Developer's Library should now appears when you select menu item Help | Help Contents, as the node JavaTM ME Developer's Library 2.2.

See also

Related Discussions
Thread Thread Starter Forum Replies Last Post
newbie, some basic questions about mobile application development p_sudheers Mobile Java General 1 2006-10-04 21:49
Platform...doubt sujith Mobile Java General 3 2006-11-29 07:39
3D graphics/game on S60 by Java and Symbian C++ zhao0028 Symbian 10 2005-07-27 06:35
Nokia doesn't provides specific information on development at all andylwl Smart Messaging 2 2002-12-25 15:42
where are nokia tools? DoctorC Symbian Tools & SDKs 1 2002-11-20 08:15
 
Powered by MediaWiki