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
- Java Development Kit (JDK)
- Download : http://www.oracle.com/technetwork/java/javase/downloads/index.html
- Installation Instructions :
- J2ME Wireless Tolkit
3. Installation
- 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 :
dnd@riyaniezt:~$ alacarte
- 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 :
/home/dnd/WTK2.5.2/bin/ktoolbar
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>
Getting this error
/home/sys26/WTK2.5.2/bin/ktoolbar
Exception in thread “main” java.lang.UnsatisfiedLinkError: /opt/java/jdk1.7.0_09/jre/lib/i386/xawt/libmawt.so: libXext.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1939)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1864)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1825)
at java.lang.Runtime.load0(Runtime.java:792)
at java.lang.System.load(System.java:1059)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1939)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1864)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1846)
at java.lang.Runtime.loadLibrary0(Runtime.java:845)
at java.lang.System.loadLibrary(System.java:1084)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:67)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:47)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1648)
at java.awt.Toolkit.(Toolkit.java:1670)
at java.awt.Component.(Component.java:595)
at com.sun.kvem.toolbar.Main.main(Main.java:98)
please check again the location of the jdk installation