Java Reference
In-Depth Information
7.4 DoJa Basic Operations Manual
You might now be wondering about some of the details involved in this
whole process. When you get started, it's always good to know where to
look when things don't work. In this particular case, it's difficult because
most of the DoJa documentation has been translated from Japanese into
English and tends to be a little terse.
Probably the best place to start is at the DoJa Developer Network
( ), which has a large number of articles as well
as beginner and advanced tutorials. Some are targeted at MIDP developers
specifically. If you're serious about DoJa development, this is the place to
start (look under the Features menu) and the best way to become effective
quickly is to do all of the tutorials so that you can understand the idioms
and terms used.
The last thing to mention about getting started is access to device
hardware for testing. This is going to be difficult in most Western countries
unless your operator has them and you want to sign up for one. It's a
problem with no easy solution at this time but, given the stability and
coherence of the platform, you can do most development with the
emulator to start with. Perhaps in time we'll see a virtual testing lab
online, much like Nokia has provided, 8 to get around this issue.
7.5 Eclipsing DoJa
We'd better build something or I'll lose your interest, so let's start by
setting up Eclipse for DoJa development using 2.5oe. The first thing to do
is to install Eclipse, if you haven't already (you'll need at least version
2.1.1). If you chose the custom installation option when installing the
DoJa toolkit, you've probably also installed the Eclipse plug-in. And that's
all you need to do.
As an introduction to DoJa, and in the spirit of public health, we'll
build a simple application for tracking body weight. Since mobile phones
are often referred to as cell phones, we clearly need to call it Cellulite .
Open Eclipse and choose New, Project from the File menu. Under the
Java node, you should see a project template for DoJa 2.5oe as shown
in Figure 7.2. Click on Next and enter the project name as shown in
Figure 7.3 and then click Finish.
The DoJa plug-in requires version 1.1 class file compatibility, so the
next step is to right-click the project and select Properties. Select the Java
Compiler node and check the 'Enable project specific settings' option.
Now uncheck the 'Use default compliance setting' and set the 'Generated
8 services/testing/rda introduction.html
Search WWH ::

Custom Search