FileDocCategorySizeDatePackage
LoadDriver.javaAPI DocExample555Sat Nov 25 12:54:32 GMT 2000None

LoadDriver

public class LoadDriver extends Object
Load some drivers.

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] av)

	    try {

			// Try to load the jdbc-odbc bridge driver
			// Should be present on Sun JDK implementations.
			Class c = Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
			System.out.println("Loaded " + c);

			// Try to load an Oracle driver.
			Class d = Class.forName("oracle.jdbc.driver.OracleDriver");
			System.out.println("Loaded " + d);
		} catch (ClassNotFoundException ex) {
			System.err.println(ex);
		}