title: java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
body: <p>When I run this code to connect to ms access db i get this error:"Data source name not found and no default driver specified"</p>
  
  <pre><code>public static Connection getConnection() {
      try {
          Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
          String database = "jdbc:odbc:Driver={Microsoft Access Driver    (*.mdb,*.accdb)};DBQ=D:/FontsDB.accdb;";
          conn = DriverManager.getConnection(database);
      } catch (Exception ex) {
          ex.printStackTrace();
      }
      return conn;
  }
  </code></pre>
  
  <hr>
  
  <p>I use Netbean7.4,JDK1.7,MS office2013,Win7_64 bit,
  I changed odbc properties from <code>%windir%\system32\odbcad32.exe</code>to<code>%windir%\SysWOW64\odbcad32.exe</code> and also i get this error.</p>