HPlogo HP Driver for JDBC User's Manual: HP 3000 MPE/iX Computer Systems > Chapter 4 Using the HP Driver for JDBC

Loading the HP Driver for JDBC

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

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.

Feedback to webmaster