At a command prompt, change to the samples-dir\SQLAnywhere\JDBC directory.
Start a database server with the sample database on your local computer using the following command:
Set the CLASSPATH environment variable.
If you are using the jConnect driver instead, then use the following (where path is your jConnect installation directory):
Enter the following to compile the example:
Enter the following to run the example:
Confirm that a list of identification numbers with customer's names appears at the command prompt.
If the attempt to connect fails, an error message appears instead. Confirm that you have executed all the steps as required. Check that your class path is correct. An incorrect setting may result in a failure to locate a class.