If you intend to run Java examples, such as, you need to install the Java example classes into the sample database.
For more information about the JDBCExamples class and its methods, see “Using JDBC to access data”.