HP Driver for JDBC User's Manual

Chapter 4 35
Using the HP Driver for JDBC
Loading the HP Driver for JDBC
Loading the HP Driver for JDBC
The Java method that is used to load all JDBC drivers is the
class.forName method. To load the HP Driver for JDBC, the code is:
class.forName(“com.hp.jdbc.allbase.JdbcDriver”);
This loads the HP Driver for JDBC and registers it with the JDBC
Driver Manager. Once a driver has been loaded and registered with the
Driver Manager, it is ready to be used to connect to a database.