You need JavaTM 2 SDK, Standard Edition (J2SE SDK), version 1.4.2 or higher. The JavaTM 2, Standard Edition Runtime Environment (JRE), version 1.4.2 can suffice if you only plan to run the demonstration applications. But we are not here to watch demos, letâ€™s develop our own apps.
Go to http://java.sun.com/j2se/downloads.html and download a version accordingly.
Install it, just run the setup file.
I installed J2SE 5.0, which was installed by default in C:\Program Files\Java\jdk1.5.0_04 in Windows 2000. You can change the default location but remember where you install it.
Now change the system path variable so that you can use the java commands (â€˜javacâ€™ or â€˜javaâ€™) in the command prompt directly. I will show you how to do this in Windows 2000.
However while using the wireless toolkit for J2ME development, we wonâ€™t be using direct command-line interface. So in case it looks cumbersome, the following steps of setting PATH variable can be skipped.
Just install the java SDK at a suitable location and remember the location.
To change the system path variable (Windows) -