ClassNotFoundException when trying to connect to .accdb file via JDBC-ODBC in Java 8
I'm working in a project in Java in Eclipse EE IDE where I have to query a .accdb file. The problem is when I try to load the driver and then connect to the database it gives me an exception error. My code: try{ String filePath = "//myfilepathtomydb/BLABLA/example.accdb" Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); String url = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb, *.accdb)};DBQ=" + filePath; Connection database = DriverManager.getConnection(url); System.out.println("Connection sucessful"); } catch (ClassNotFoundException e){ System.err.println("Got an exception"); System.err