Compiling and running sample Java applications on non-Palm OS targets

The following set of topics describe how to compile and run the sample Java code using WebSphere Studio Device Developer (WSDD) 5.5 and the J9 Java Virtual Machine.

It is recommended to use 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. 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 Installieren von mobilen Geräten. Where necessary, additional instructions are provided to set up the DB2 Everyplace JDBC driver.

Procedure

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

  1. Install WCE Tooling for WSDD.
  2. Create a WSDD project and add jar files to the build path for DB2eAppl.java.
  3. Import DB2eAppl.java into WSDD.
  4. Run DB2eAppl.java. The steps vary depending on your operating system.

Zugehörige Tasks