1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
Installing the Development Environment:
1. Install JDK 5.0 Update NN.
2. Install Sun Java Wireless Toolkit for CLDC v2.5.2_01.
3. Install J2ME-Polish v2.0.4
a) Download J2ME-Polish from http://bitbucket.org/javarosa/javarosa-core/wiki/files/j2mepolish-2.0.4.jar
b) Execute java -jar j2mepolish-2.0.4.jar
4. Create a work directory ( All commands below will be within the work directory)
a) bzr branch lp:~lifeeth/sahana/mobile
b) cd j2meapp/org.javarosa.sahana
c) Set the polish.home,j2mewtk.home and wtk.home variables in build.properties to match your intall locations.
d) Test if the environment is properly setup by executing "ant build" in the directory.
d) For creating a jar for deployment execute -> ant BuildRelease
Customizations:
1. Add the xforms to the resources directory - a guide to create the Xforms can be found at -> http://code.javarosa.org/wiki/buildxforms
2. Load the forms and the appropriate default configurations at the bottom of the
file: j2meapp/org.javarosa.sahana/src/org/javarosa/sahana/midlet/JavaRosaDemoMidlet.java
3. Select the phone model by changing the device.identifier in build.properties
Valid devices can be found at : http://devices.j2mepolish.org/interactivedb/searchdevices.faces
|