

JDBC driver to connect Oracle database comes on ojdbc6.jar too MySQL driver comes in mysql-connector-java-5.1.23-bin.jar. Just retrieve that is a measure cast from JDK API too it doesn't come upward alongside whatever external JAR similar other vendor database's JDBC drivers e.g. In lodge to connect to MS Access, nosotros postulate type 1 JDBC driver, too known every bit JDBC ODBC duo driver too the cast inwards question, JdbcOdbcDriver is driver implementation to connect to Open database connectivity driver installed inwards machine. In lodge to charge driver, nosotros purpose Class.forName("") too this method throws, if ClassLoader is non able to notice the requested cast ( ) in CLASSPATH.

If you lot remember, In lodge to opened upward SQL connective to database, outset measuring is to charge too register the driver. Normally, inwards pre Java 8 world, fault comes when you try to connect to Microsoft Access database from Java using JDBC too JDBC ODBC duo driver is non available inwards classpath. In lodge to solve this error, only use Jackcess library or a commercial driver similar HXTT. Microsoft Access, but unfortunately you lot cannot purpose it from JDK 8 onward.

This cast is required to connect whatever database using Object database connectivity driver e.g. exception comes inwards Java 8 because it has removed the JDBC ODBC duo driver cast "" from JDK too JRE.
