This topic might be very strange to any one who has no/very little knowledge of J2ME phones. But for those brave hearts who found this topic with the intention to create J2ME MIDlets, then you are at the right place! You might have configured Sun Wireless Toolkit on your Windows PC and struggled to set it up on your Linux system. By the way, I chose the distro Mint specifically because of that.
- is my primary OS.
- “desklet” will be mentioned later.
- found a specific issue while setting it up on it.
Well, I did say “Linux system”, didn’t I? It’s true; you can set it up on your Ubuntu, Fedora, Gentoo, etc.
Downloading Wireless Toolkit
First, you’d have to download the Toolkit if you don’t have it.
- Open up your favorite browser.
- Search for “Sun Java Wireless Toolkit”. You’ll get to this page.
Scroll down and click on “Download”.
See the boxed option below? Click that.
You’ll be asked to sign in to your Oracle Account. If you don’t have it, sign up with your email. And you’re done.
Installing Wireless Toolkit:
Before proceeding, do you have the official JDK 32-bit from Oracle (not 64-bit; even if your system is equipped with 64-bit architecture) installed on your system? If no, click this link How to install Oracle JDK on Linux Mint. Once you’ve set it up, come back and proceed below.
Note: If you are wondering why not 64-bit for better performance? Well, because you cannot assume your device has 64-bit architecture :P. The truth is J2ME is a highly stripped down version of J2SE 1.2 only for the sake of fulfilling the need for resource-limited computing devices. Of course, you could still install the toolkit under JDK 64-bit and run it. Soon your work will be halted when you realize the toolkit fails to compile, build and run your MIDlet. Now, you’re all set to install Sun Java Wireless Toolkit on your Mint. Browse to the directory where you’ve downloaded the toolkit (probably under ~/Downloads/), right-click and select “Open in Terminal”, then follow the images below –
Keep pressing ENTER until you get to this –
End of Line (EOL)!
Running Wireless Toolkit
This will be a tedious job for you from now on since you have to keep browsing to the ~/bin directory using nemo just to run ktoolbar. Or:
cd ~/WTK2.5.2/bin/ ./ktoolbar
There are other ways to overcome that remedy. For instance, you could specify the custom execution path using the terminal; see this: Set path permanent. Otherwise, use this method of mine to create a desklet for ktoolbar.
- Right click on your desktop wallpaper and select “Add Desklets”
- Right click Launcher desklet>Add to desktop
- Right click the launcher and select “Edit Launcher”
- Follow the screenshots below to finish the rest.
And you’re done. Click that launcher: be amazed and kiss your elbow if the toolbar logo is printed on your screen. Carry on your J2ME journey.
Now the specific issue
Most of you might’ve set up a standard user account, and under that account, you might’ve followed my tutorial through. But if you are that guy/gal who hates to wait for (slow) MDM to load up and instead preferred to log into the default (Administrator) account on boot-up, then you might’ve run into this specific issue.
You might’ve got this output:
sun_java_wireless_toolkit-2.5.2_01-linuxi486.bin.sh: command not found
You’re in luck because that happened to me too. So here’s what you’ve got to do:
mv sun_java_wireless_toolkit-2.5.2_01-linuxi486.bin.sh sun_java_wireless_toolkit-2.5.2_01-linuxi486.bin
And voilá! Go back up to Running Wireless Toolkit to finish your work.
So that’s it. Setting up the wireless toolkit for your Mint. And yes, 0.1 in a 100% probability that someone still uses that aged phone, believe me, I still have an s40 Nokia Asha with me not because I get to experience featured apps from Gameloft but… um… uh… forget it! Well, it surely does outlive those eye-candy smartphones for a week on a full charge!