Eclipse is a free, full-featured IDE which provides most of the functionality found in other commercial IDEs. Having been originally developed as a Java IDE, it contains a large feature set required for developing standard 'desktop' Java applications. Recently, some support has been also added for developing Java CLDC applications using emulators (such as Sun's Wireless Toolkit), but CDC application support is still lacking. Here, we present the steps and workarounds needed to enable Java application development using Eclipse IDE and Apogee JREs.
Installation.
Setting up JREs.Eclipse lacks the built-in support for recognizing Apogee JREs, since their file layout is vastly different from the standard J2SE. However, Eclipse allows the user to specify the alternate JREs via its 'Execution Environment' mechanism.
Developing Java Applications.Java applications targeting Apogee JREs must reference and use only the APIs that are provided by such JREs. This can be accomplished by using an Apogee JRE configuration (J2ME Foundation 1.1 or Harmony) as a project-specific JRE in Eclipse. It entails either selecting 'Use a project specific JRE' during project creation time or by modifying default JRE used by your existing Eclipse projects. Running Java Applications.While developing Java applications can be done entirely on the host system, running and debugging them involves proper setup of the target device. One possible way to accomplish that is:
Debugging Java Applications.In order to debug Java applications on the target system, the following steps need to be done:
|