Compiling and running sample Java applications on Palm OS targets

The following set of topics describe how to compile and run the sample DB2eAppl.java Java code on Palm OS targets.

It is recommended to use WebSphere Studio Device Developer (WSDD) as your development environment. WSDD uses the J9 VM, which may not support the processor type of your device. If you use a different development environment and JVM, make sure the JVM supports the JNI, because the DB2 Everyplace JDBC driver uses the JNI. Other compatible JVMs include Sun PersonalJava, Insignia Jeode, and NSIcom CrEme. Currently, if your target is Palm OS, you must use the J9 VM that comes with WSDD. The evaluation version of WSDD can be downloaded from http://www.ibm.com/software/pervasive/products/wsdd/.

Prerequisites

  1. Ensure that you have the following software installed:
  2. Prepare your target and development environment according to WSDD documentation. Verify your WSDD installation by building and running WSDD sample applications.
  3. Install DB2 Everyplace on your target device according to Instalace mobilních zařízení. Where necessary, additional instructions are provided to set up the DB2 Everyplace JDBC driver.

Procedure

To compile and run the sample Java code on Palm OS targets:

  1. Install WCE Tooling for WSDD.
  2. Create a WSDD project for DB2eAppl.java.
  3. Add the DB2 Everyplace JDBC Driver and java.sql package to the build path.
  4. Import DB2eAppl.java into WSDD.
  5. Run DB2eAppl.java on a Palm OS emulator.

Související úlohy