How to Install: Java Wireless Toolkit

Rose-Hulman Institute of Technology –
Computer Science & Software Engineering

Overview

Java ME Platform SDK is a state-of-the-art toolbox for developing mobile applications. It provides the following features:

Follow these instructions to install J2ME 2.5.2 on a Windows machine.  These instructions were tested on a 64-bit installation of Windows 7.

Download and Install J2ME 2.5.2

  1. Login to your .\localmgr account on your computer.
  2. Verify that you have an installation of Java Standard Edition Development Kit (JDK) 6 or later. If not, you can install one using these instructions.

    Now that you have a JDK installed, you are ready to install J2ME 2.5.2

  3. Point your browser to http://www.oracle.com/technetwork/java/download-135801.html to download the Sun Java Wireless Toolkit 2.5.2 for CLDC.
    1. Verify that your computer meets the hardware requirements.
    2. Click the download button for Sun Java Wireless Toolkit 2.5.2_01 for CLDC for Windows and Linux.
    3. Accept Oracle's License Agreement, select your platform, and click on the link for that platform
    4. Sign in to Oracle's website if requested. You may have to create a new Oracle account.
    5. Download the Required File, Sun Java Wireless Toolkit 2.5.2_01 for CLDC and save it on your computer to a location that you will remember. The download should complete within a minute or two depending on you connection speed.
  4. Follow these instructions for installation
    1. Find the Required File you downloaded in step 3 above and double click it to run it.

      You may get a message that says "The publisher could not be verified. Are you sure you want to run this software?"

      Ignore the warning and run it by clicking the Run button. It will not harm your system.

    2. Click the Next button when the installSheild Wizard appears.
    3. Accept the License Agreement by clicking the Accept button.
    4. You will now be asked to choose your Java [TM] Virtual Machine Location. Accept the default if you have a 32-bit Java installation or browse to the location of the jdk of your choice 32-bit JVM. You will need to install a 32-bit version of Java if you do not have one. You can do this now or at the end of the installation.
    5. Click the Next button.
    6. The next screen will ask you to choose a destination location for installing Sun Java Wireless ToolkitAccept the default location or select one of your choice. 
    7. Click the Next button.
    8. Select a Program (start menu) Folder the installation (or again, accept the default).
    9. Click the Next button.
    10. Make sure the box is selected to Check for Product Updates and click the Next button.
    11. When asked to Start Copying Files, click the Next button.
    12. Wait a couple minutes while it installs the updates, then click the Finish button.  That completes your installation.
    13. Note: For the Wireless Toolkit application to work, you must use a 32-bit version of Java and you must configure the application so that it will use the 32-bit version of Java. If you installed the wireless toolkit before installing a 32-bit version of Java, you can do the following to make the application work:

      Download and install a 32-bit version of Java. Edit C:\WTK2.5.2_01\bin\emulator.vm. In emulator.vm change the java executable to the location of your 32-bit version of java. E.g. C:\Program Files (x86)\Java\jdk1.7.0_11\bin\java -Dkvem.home="%KVEM_HOME%" ...

      You should then be able to run the WTK 2.5.2 emulator.

      By the way, the following link claims that you could also solve the problem by uninstalling WTK, installing 32-bit Java, and then reinstalling WTK. http://peterscorner.co.uk/2010/03/27/sony_ericsson_emulator_problem_on_64bit_windows.html

      The problem isn't that you can't run 32-bit "stuff" on a 64 bit machine, but rather that a 64-bit executable cannot load a 32-bit dll.

Verify that your installation works

Now that you have a Java Wireless Toolkit installed on your machine, you can open existing projects, create new projects, and run them on a mobile device emulator or on an actual physical device. 

Follow the instructions below for opening an existing project and running it in a mobile device emulator.

  1. Locate the Sun Java (TM) Wireless Toolkit 2.5.2_01 for CLDC Folder on your Windows Machine.  You can do this by clicking on Start Menu    All Programs, and scrolling to the folder.
  2. Expand the folder in step 1 and click on Wireless Toolkit 2.5.2.
  3. Click Open Project and select from the list of available projects.
  4. Double click on the project you selected (e.g., Audiodemo).
  5. Click the Run button and voila! You are now ready to run the selected application on your mobile device emulator.
  6. Select from the games provided (e.g.,  Bouncing Ball).  Select a background of your choice and have fun with it.

Configuring Eclipse for J2ME Development

Follow these instructions to configure Eclipse for developing your J2ME applications.