The following steps apply to the DB2 Everyplace Sample for Palm OS CLDC
project. The DB2 Everyplace Sample for Palm OS XTR project involves similar
steps.
This task is part of the main task of Compiling and running sample Java
applications on Palm OS targets. After you complete these steps, return to Compiling and running sample Java applications on Palm OS targets.
Procedure
To add the DB2 Everyplace JDBC Driver (and java.sql package) to the build path:
- Right-click the DB2 Everyplace Sample for Palm OS CLDC project in the
Package Explorer view in the Java Perspective, then click Properties from the pop-up menu.
- In the properties window that opens, click Java Build Path in the left
pane, then click the Libraries tab in the right pane.
- Click Add External JARs. In the JAR Selection window,
browse to <DB2Everyplace>\Clients\PalmOS\database\JDBC\cldc\db2ejdbc.jar, then click Open.
-
Repeat the previous step to add database_enabler_cldc.jar and DB2eJDBC_Cldc_maps.jar to the build path.
- Back in the Properties for DB2 Everyplace Sample for Palm OS CLDC window,
click OK.
Return to Compiling and running sample Java applications on Palm OS targets.