How to Connect Java (JDBC) with MS Access Database

In this tutorial I will teach you how to connect java (jdbc) with ms access database.

MS Access is a part of Microsoft Office and used as database management system (dbms).

For making a new database go to MS Access > Blank Database. Give a name to database and click on Create button to create the database.

Also Read: How to Connect Java (JDBC) with MySQL or Oracle Database

How to Connect Java (JDBC) with MS Access Database

Below example shows jdbc ms access database connectivity.

How to Connect Java (JDBC) with MS Access Database

 

JDK 1.8

If you are using jdk 1.8 then you will get ClassNotFoundException. Just read below article to solve the error.

Read: Solve java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver Error

 

Above program is really easy to understand. You can ask your queries in comment section.

2 comments

Leave a Reply

Your email address will not be published. Required fields are marked *