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)
- Java Development Kit (JDK)
- Download : http://www.oracle.com/technetwork/java/javase/downloads/index.html
- Installation Instructions :
- J2ME Wireless Tolkit
- Download Java Wireless Toolkit (*.bin.sh) for linux
- 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:
- 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.
- 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
- 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
- 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 ]:
- 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
- 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
- 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
- Open Main Menu (go to main menu -> preferences -> Main Menu), or Inside terminal, execute the following command :
- If you have seen window “Main Menu”, In the navigation pane on the left, click Programming category.
- Click the “+ New Item” to add new laucher.
- If you have seen window “Create Launcher”,
- In the Name box, type “J2ME Wireless Toolkit” (without quotes)
- In the Command box, type :
or Browse and locate the WTK installation directory (Ex : /home/dnd/WTK2.5.2/bin/ktoolbar),
- In the Comment box, type “JME/J2ME WTK” (without quotes)
- and then click the “OK” and “Close” button.
- To launch J2ME Wireless Toolkit, go to Main Menu -> Programming -> J2ME Wireless Toolkit.
Good Luck ! <DnD>