Getting Started with JavaROSA Development
The repository is publicly accessible with read-only permissions. For write permissions, please contact a member of the javarosa-developers community.
Setting Up the Development Environment
Several of these installs are not small, make sure you are on a stable connection when you try to download them.
- Install the Java Standard Edition Development Kit (JDK) 5.0
- Install the Sun Java Wireless Toolkit for CLDC v 2.5.2. It is recommended to install to the default location of C:\WTK2.5.2 to avoid having to re-map libraries locations.
- Install the Eclipse IDE for Java Developers
- Install EclipseME 1.7, the Eclipse J2ME plugin,
- Install Subclipse v 1.0.6, the Eclipse Subversion plugin
- Install J2ME-Polish v 2.0.4.
- You should only need to set the WTK directory during the install process (what you installed in step 2.)
- Install any vendor-specific SDKs/Wireless Toolkits you may be interested in, and repeat the 'Import Device Profiles' part of the 'Setup J2ME in Eclipse' step below.
- Make sure your default JRE in Java->Install JREs points to a JDK not a JRE.
Setup J2ME in Eclipse
- After Installing, in Eclipse, go to Window -> Preferences.
- Select the J2ME node
- Import device profiles
- Navigate to the install directory of the Java wireless toolkit
- Select refresh
- Select DefaultColorPhone (or another phone of choice)
Getting the Code
- If you are creating a new workspace, follow-step "setup J2ME in Eclipse" from above.
- Download this file (also attached to this page at the bottom), which will be used by Eclipse.
- Open Eclipse.
- Go to File -> Import.
- Under Team, select "Team Project Set". Click Next.
- Locate the Team Project File that you saved in step 1.
- Click Finish.
- If the import fails, please follow the 'Alternate Checkout' instructions section below.
Building the Code
- The main project to use is org.javarosa.demo. It has dependencies to the other projects, enumerated both in its .classpath file, and its build.xml file.
- Open the org.javarosa.demo project.
- Open the build.properties file.
- Set the polish.home variable to the location of J2ME-Polish on your system.
- Set the wtk.home variable to the location of the Sun Wireless Toolkit on your system. Repeat for any vendor-specific toolkits.
- Set the app.class variable to the name of the MIDlet you wish to run.
- Right click on the build.xml file and select Run As -> Ant Build.
Alternate Checkout
If you continue to have problems with the Team Project file, follow the directions below to get a checkout of the code.
- In Eclipse, open the "SVN Repository Exploring" Perspective. This can be found in Window->Open Perspective->Other...
- Right click, and select "New->Repository Location"
- Enter the URL: http://code.dimagi.com/svn/JavaRosa
- Expand the node for the repository location
- Expand the node for 'branches'
- Expand the node for 'dev'
- Select all of the "org.javarosa.*" projects by clicking on the first node (org.javarosa.action) and then shift-clicking the bottom node (org.javarosa.xform)
- Right click on the selection and click "Checkout"
- On the next screen, hit Finish.
Troubleshooting Dev Environment
Troubleshooting the Development Environment
Set up Debugging
Now What?
- How to Contribute : Getting started contributing to the code
- Open tickets : Bugs to be fixed and new features we want added
Attachments
-
JavaRosaTeamProject1.psf
(2.1 kB) - added by droos
3 months ago.
Eclipse .psf file a/o 2008-09-11
