11. Understanding JDBC Connectivity : JDBC Driver Interface : JDBC Driver and Data Source Classes : How the Driver Is Loaded
 
Share this page                  
How the Driver Is Loaded
The JDBC Driver can be loaded by an application or applet by using one of these methods:
Adding the driver class, com.ingres.jdbc.IngresDriver, to the JDBC DriverManager system property "jdbc.drivers"
Adding the following Java statement to the application/applet prior to attempting to establish a connection using the JDBC Driver:
Class.forName( "com.ingres.jdbc.IngresDriver" ).newInstance();
Depending on the Java environment, calling the forName() method can be sufficient to load and initialize the JDBC Driver classes. Some environments, most notably older releases of Microsoft Internet Explorer, require the instantiation of a JDBC Driver object to fully initialize the driver.
While only one method is needed, both methods can be used without conflict.