March 13, 2007

[J2ME] First step to J2ME

First step to J2ME

What do you need?
You are required to have basic Java programming. And you need some tools. I won't provide too much detail about the tools that you need for developing the Java game on mobile. Instead, I will just list them out, and you may search them in google and find out what they are.

1. Eclipse, Jbuilder, other Java Editor (nice IDEs ... I like Eclipse more and it is free)
2. Sun Java Wireless Toolkit (Compile and build the Jar ... Free)
3. Emulator (find it yourself e.g. forum.nokia.com … developer.motorola.com ...)
4. Progard (an obfuscator, your good friend)
5. J2ME Specification and Documentation

Read
http://developers.sun.com/techtopics/mobility/learning/tutorial/index.html

API
Mobile Information Device Profile MIDP 1.0 (JSR 37)
Mobile Information Device Profile MIDP 2.0(JSR 118)
Connected Limited Device Configuration CLDC 1.0 (JSR 30)
Connected Limited Device Configuration CLDC 1.1 (JSR 139)
Other APIs

I recommand that you read the MIDP 2.0 first if you are new to J2ME coz almost all new Java-enabled phones which are equiped with MIDP2.0.

The J2ME app/game that developed by using midp1.0 API will run on both MIDP1.0 and MIDP 2.0 phone.
The J2ME app/game that developed by using midp2.0 API will run only on MIDP 2.0 phone.


Notation:
MIDP 1.0 phone - Java-enabled phone with MIDP 1.0 support
MIDP 2.0 phone - Java-enabled phone with MIDP 2.0 support


How do I know what APIs that the phone support?
To know more about that, you should check out the spec from Internet. Google can help you~ lol. For example, you can find the spec of Nokia 5300 from here below:
http://forum.nokia.com/devices/5300

Alright~ Have some fun ~ lol

No comments: