Thursday 20 October 2011

Beginner Guide for J2ME

Introducing J2ME for beginner (Preparation)

So here we are, first of all i would like to introduce to all of you what is J2ME ? 
Java ME, is a Java platform designed for embedded systems (mobile devices are one kind of such systems) . Target devices range from industrial controls to mobile phones (especially feature phones) and set-top boxes. Java ME was formerly known as Java 2 Platform, Micro Edition (J2ME). ~Wiki

First thing that all of you should do is install Eclipse And the other Developments kit. 
But here, i choose Eclipse Pulsar to do it. you can find it and download it on www.eclipse.org/pulsar
And the other development kit was :
-. JDK 5(last publicly available release of J2ME 5.0) from Oracle : http://www.oracle.com/technetwork/java/javase/downloads/index-jdk5-jsp-142662.html
-. JRE : http://www.java.com/en/download/index.jsp
-. And here you can choose any one of them
   * WTK : www.oracle.com/technetwork/java/download-135801.html
   * Sony Ericson ME SDK : http://developer.sonyericsson.com/wportal/devworld/page-not-found?cc=gb&lc=en



After got them installed you should have the picture like this 







Then first, you should configure the WTK or SDK that you installed. Click Window -> Preferences. Then choose J2ME and click Device Management. Then click the Manual Install.. button . Then specify the directory where you install the WTK or SDK. then click finish.




CREATE NEW PROJECT

Click File -> New -> MIDlet Project. But if you're new to this things, you won't be able to see any MIDlet Project. To add it, click File -> New -> Project... and choose folder Java ME and pick MIDlet Project then click next.


After that you should see something like this 






Pick a name for your Project name then to add the WTK that you had been configured. click add and search in manage device the WTK that have you installed. Choose WTK SDK, Sun Java(TM) Wireless Toolkit 2.5.2_01 for CLDC then choose the device that you want to use. There were four Device :
-. Default Colour Phone
-. Default Gray Phone
-. Media Control Skin
-. Qwerty Device


Then click finish if you're finished






After that you can code whatever you want, Happy Code :)

No comments:

Post a Comment