I have read about million solutions, none seemed to work. I have the following piece of code :
//Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
//Connection dbConnection = DriverManager.getConnection("jdbc:ucanaccess://dbName");
Connection dbConnection=DriverManager.getConnection("jdbc:ucanaccess://C:/Users/Eshel/Desktop/workspace2/final_project/NZDB1.mdb");
//Connection dbConnection = DriverManager.getConnection("jdbc:odbc:;DRIVER=Microsoft Access Driver (*.mdb, *.accdb); DBQ=./" + dbName, "", "");
System.out.println("Conection established=" + dbConnection);
the lines which are commented out are all kind of things I have tried. Keep getting "Source not found" and classLoader exceptions. For example when I try to use the ucanaccess class I get "The source attachment does not contain the source for the file UcanaccessDriver.class" Even added entries in System DNS, nothing works so far ... Any suggestions ?
Thanks a lot !