FileDocCategorySizeDatePackage
LoadDriver.javaAPI DocExample534Wed Jun 16 20:39:04 BST 2004None

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.getName());
			// Try to load an Oracle driver.
			Class d = Class.forName("oracle.jdbc.driver.OracleDriver");
			System.out.println("Loaded " + d.getName());
		} catch (ClassNotFoundException ex) {
			System.err.println(ex);
		}