Starting with J2ME
OK, so I decided to try to write a Java application for a mobile cellphone.
I found out that it is suprizingly easy to write a Java application for your mobile cellphone!
The tools available are fantastic!
First thing, you should know some Java or Java-like language.
Because, the Java applications for your phone are written in normal Java!
The compiler just compiles it to run on your phone. Very nice and easy.
J2ME == the platform that most mobile phones run Applications / Games with.
If you program/code in Java, NetBeans will definitely help your productivity, especially if you are creating swing/swt (GUI) applications for the normal Java VM.
NetBeans IDE runs on the J2SE JDK 5.0 (JavaTM 2 JDK, Standard Edition), which consists of the Java Runtime Environment plus developer tools for compiling, debugging, and running applications written in the JavaTM language. NetBeans IDE 5.0 also runs on J2SE SDK version 1.4.2, but it has only been tested on JDK 5.0.
You can download the JDK for your platform from the site listed below:
For creating J2ME applications get NetBeans, then get the NetBeans Mobility Pack. NetBeans Mobility
What is easier than this ->
The NetBeans Mobility Pack adds to the NetBeans IDE everything needed to immediately start writing, testing and debugging Java applications for mobile phones and other Java Micro Edition (Java ME) technology-enabled devices. It includes the Java ME wireless toolkit and device emulators, so that no additional downloads are needed to start working with mobile technologies. The NetBeans Mobility Pack provides comprehensive support for the Mobile Information Device Profile (MIDP) 1.0 and 2.0, the Connected, Limited Device Configuration (CLDC) 1.1, and includes visual design tools for mobile applications, integrating mobile applications with web services. It completely solves the problem of creating device-specific code for cases such as specific phone models, phones with only monochrome displays or varying screen sizes, and all other device-specific issues.
You can code, then test it in the included emulator immediately.
NEW: netbeans.org are giving away (posting) CD’s to anyone that wants one. Part of their “empowering developers worldwide” tour thingy.
* NetBeans free CD
Contains NetBeans IDE 5.5, Mobility Pack, Profiler, Sun Java System Application Server 9, Netbeans Documentation.
NetBeans World Tour CD is absolutelly free!!! No shipping or CD charges!
According to the site, my CD was sent on the 18 April, and I received it on the 19 April! Aeroplanes are fast. Posted from Czech Republic to South Africa.
If you are starting off, the NetBeans.org site is a good place to start: they have j2me NetBeans tutorials and guides.
I found a cool resource on sun.com – java learning JavaOneOnline, it contains nice live flash presentations with audio about most things Java Mobile Edition.
A J2ME introduction with explanations of terms for the ‘newbies’ is here. You need to register on the developer.sun.com site to get a login.
Emulator for testing included.
Java programmers need to be productive and this is the focus of the NetBeans Integrated Development Environment (IDE). The NetBeans IDE is a fast and feature full tool for developing Java software. It is standards compliant and runs on any operating system where a Java Virtual Machine is available. The NetBeans IDE is open-source and is developed right here on the netbeans.org website. It can be used free of charge for any type of software development. The NetBeans IDE runs on any platform. While the IDE is modular (its functionality can be extended by plug- ins), the focus of netbeans.org is on providing all the tools a Java developer needs in one download, with no additional set-up or configuration needed to begin productive work with the IDE.
- palowireless.com – Devtools – List of development tools for Java (J2ME included).
- www.defza.com/wordpress/mobile-life/ – I list a J2ME mobile phone (jad / jar) emulator here.
- jroller.com/page/shareme/J2MEResources – List of free J2ME Resources :: Emulators – programming articles – etc
- billday.com/j2me – J2ME archive of all things mobile. Nice and extensie.
There are memory restrictions when it comes to programming an application for a mobile cellphone.
Here are some resources:
- http://www.cellspark.com/devnotes.html – Tips and tricks on how to optimize your midlet J2ME code to get the most out of every byte.