How to use JDBC to connect to Microsoft Access?
There are two techniques available for connecting to a data source using JDBC. First, if your program will talk to an ODBC data source, you can use the JDBC-ODBC bridge included with your JDK.
In the case of Sun, you would use sun.jdbc.odbc.JbdcOdbcDriver.
Specifically, using Class.forName:
or the command line:
java -Djdbc.drivers=sun.jdbc.odbc.JdbcOdbcDriver < program name >
Second, you can connect to your data source through a third-party, vendor-specific bridge.
In the case of a third party driver, you simply substitute that driver for the JDBC-ODBC bridge driver.