If you intend to run Java examples, install the Java example classes into the demo database.
See SQL Anywhere Server - Programming > JDBC support > Using JDBC to access data > Preparing for the examples.