Java
We use Java 6 in the CDF labs. (Mac users get theirs through Software Update.) Java 5 is perfectly fine, too.
There is extensive Java documentation; you can use it online or click the first link to download the documentation to your own computer. (Please do not download it to your campus account; use the online version instead.) Here's a link to the docstring equivalents: Java Platform documentation.
The IDE that we're using in lectures is NetBeans; the CDF computers also have NetBeans installed.
You'll be submitting your assignments using Subversion. NetBeans comes with Subversion, but you may want to install it separately.
Installation instructions for NetBeans Mobility (cell phone app development)
THIS WILL BE UPDATED SOON.
In order to install and run mobile applications, you'll need the NetBeans Mobility Plugin. Here are some instructions:
Get NetBeans 6.1 and the mobility pack (all platforms)
- Download and install NetBeans 6.1 (either the EE or SE versions).
- Start the IDE and select Tools -> Plugins.
- Select the Available Plugins tab. Under Category, go to Mobility.
- Check the boxes for "Visual Mobility Designer" and "Mobility" and click Install.
Windows/Linux
We think this is all you need to do, although we'd appreciate feedback (send email to Paul) if there are more steps:
- Install Sun's Java Wireless Toolkit for CLDC. The Download button is buried about halfway down; after you click it, follow the instructions.
OS X
Sun wrote their phone emulator in C, so it isn't cross-platform. (Odd, coming from Sun!) There are a few other oddities beyond that: you'll need to jump through a few hoops.
Get MicroEmulator, an emulator for OS X:
Follow the instructions on the NetBeans Microemulator webpage. This may very well be all that you need to do; it seemed to work with a student who visited office hours
Writing a mobile application
Here are instructions for writing a mobile application.
Here is some sample code to read and write from a record store, which is stored in a BlackBerry's filesystem-like database, and is persistent through a restart of the device.