Installing the J2ME Wireless Toolkit under Ubuntu

I wanted to check out the current work on Antiquities and had to go through a few hoops to get the J2ME Wireless Toolkit (J2ME WTK) working on my home machine (Ubuntu, Hoary). I figured that I’d post a (very) brief run-down to save everyone else some time.

Ubuntu is a debian-based distribution and Java support is hampered due to the restrictive Java license. There is some support for older versions of Java (1.1), but not for the more recent version we need in order to use the J2ME WTK.

The most recent version of the J2ME WTK available for Linux is 2.2. You will need to have the Java2 Standard Edition (J2SE) SDK installed before you can install the J2ME WTK. The most recent version of J2SE available for Linux is 5.0, but it is incompatible with the J2ME WTK 2.2. Rather, you need to install 1.4.2.

I found the easiest thing to do is to install the J2SE SDK in a non-system directory (such as your home directory). When installing J2ME WTK, you can input this path for the J2SE SDK. I also used a non-system directory for the J2ME WTK installation.

After it is up and running, you can get Antiquities out of Subversion and place it in the “apps” subdirectory of wherever you chose to install the J2ME WTK. If you’d like to check Antiquities out elsewhere, just create a symbolic link within the “apps” subdirectory.

Links to download pages:

Just a few closing notes. There are some instructions on the Ubuntu wiki detailing how to create a Debian package from the SUN J2SE binary, but these instructions are only for the 5.0 version (which is incompatible anyway). The future looks bright though, the next version of Ubuntu (Breezy) will have open source Java 1.4 packages.

One thought on “Installing the J2ME Wireless Toolkit under Ubuntu”

Comments are closed.