A. Sidiq Purnomo

Universitas Mercu Buana Yogyakarta

You are here: » How To Install and Configure J2ME/Java ME on Ubuntu (Linux)

How To Install and Configure J2ME/Java ME on Ubuntu (Linux)

1. Introduction

Java ME technology was originally created in order to deal with the constraints associated with building applications for small devices. For this purpose Oracle defined the basics for Java ME technology to fit such a limited environment and make it possible to create Java applications running on small devices with limited memory, display and power capacity. (http://www.java.com)

2. Requirements

  1. Java Development Kit (JDK)
  2. J2ME Wireless Tolkit

3. Installation

  1. Download Java Wireless Toolkit (*.bin.sh) for linux
  2. Run the commands below to install the downloaded file, and copy to “/home/user/” directory, Inside terminal, execute the following command :
    dnd@riyaniezt:~$ cp /home/dnd/Download/sun_java_wireless_toolkit-2.5.2_01-linuxi486.bin.sh  /home/dnd/
    dnd@riyaniezt:~$ sudo sh sun_java_wireless_toolkit-2.5.2_01-linuxi486.bin.sh 
    [sudo] password for dnd: 
    
  3. If you will see a notification of a license agreement. Type “yes” and then press enter on the keyboard.
    Do you agree to the above license terms? [yes or no] yes
    

    and then press enter on the keyboard until the end of the license document.

  4. After finished, you will see a dialog to ask for approval specify a path of a Java interpreter directory. Type “0” and then press enter on the keyboard.
    0) Specify a path to a Java interpreter directory. 
    1) Cancel this installation. 
    Select a choice [0-1]: 0 
    
  5. And then, you will see a dialog to type path address of the JDK. Type your specify a path of the JDK, for example “/opt/java/jdk1.7.0_07/bin”
    and then press enter on the keyboard.

    This application requires Java 2 SDK, Standard Edition (1.5 or later). Enter a path to a Java 2 SDK (For example: /user/jdk1.5/bin). You can type "exit" to cancel installation. 
    Enter a path to the Java 2 SDK: /opt/java/jdk1.7.0_07/bin
    
  6. And then, you will see a confirmation dialog to specify the default installation directory. By default you will see a directory to put the installation files, but you can also put the installation files to another directory such as “/opt/java”. If you agree press enter on the keyboard.
    Please enter a directory into which you would like to install the Sun Java(TM) Wireless Toolkit, 2.5.2 for CLDC. 
    [ default is /home/dnd/WTK2.5.2 ]:
    
  7. And then, you will see a confirmation dialog to approval for updates, type “yes” to agree and then press enter on the keyboard.
    Check for Product Updates? [yes or no] yes
    
  8. And then, you will see a confirmation dialog to begin the installation process, Type “0” to approve and then press enter on the keyboard to continue the installation process.
    Please choose one of the following options: 
    0) Begin copying files if you are satisfied with the settings  . 
    1) Cancel the installation. 
    Select a choice [0-1]: 0
    
  9. Please Wait for installation to complete, After installation is complete you will see a confirmation dialog.
    Extracting the installation files... 
    Documentation for the Sun Java(TM) Wireless Toolkit 
    2.5.2 for CLDC is in the file /home/dnd/WTK2.5.2/index.html 
    In order to start using the Sun Java(TM) Wireless Toolkit 2.5.2 for CLDC, please run /home/dnd/WTK2.5.2/bin/ktoolbar
    

Step 4: Create Menu to access JME/J2ME WTK

  1. Open Main Menu (go to main menu -> preferences -> Main Menu), or Inside terminal, execute the following command :
    dnd@riyaniezt:~$ alacarte
  2. If you have seen window “Main Menu”, In the navigation pane on the left, click Programming category.
  3. Click the “+ New Item” to add new laucher.
  4. If you have seen window “Create Launcher”,
    1. In the Name box, type “J2ME Wireless Toolkit” (without quotes)
    2. In the Command box, type :
      /home/dnd/WTK2.5.2/bin/ktoolbar

      or Browse and locate the WTK installation directory (Ex : /home/dnd/WTK2.5.2/bin/ktoolbar),

    3. In the Comment box, type “JME/J2ME WTK” (without quotes)
    4. and then click the “OK” and “Close” button.
  5. To launch J2ME Wireless Toolkit, go to Main Menu -> Programming -> J2ME Wireless Toolkit.

Good Luck ! <DnD>

Posted by 0 Responses
 

Free Email Newsletter

Stay Updates with this Blog. Get Free email newsletter updates..

And then confirm your email subcription

   

No Comment to “How To Install and Configure J2ME/Java ME on Ubuntu (Linux)”

  1. No Comment yet. Be the first to comment...
Leave your comment here:

Secure * Time limit is exhausted. Please reload the CAPTCHA.

Oct
4
2014