I have 32 bit Java Installed with 32 Bit Netbeans (64 Bit Laptop) and have Office Access 2007 32 Bit.
I am getting a problem when I am trying to connect a database to my java project.
java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified java.lang.NullPointerException
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String SourceURL = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb,*.accdb)};DBQ="
+ new File("Argos.accdb").getAbsolutePath() + ";";
//MAY CHANGE THE ADMIN PART (Remove Admin)
Argos = DriverManager.getConnection(SourceURL, "admin","");
Thanks