I got a access database, and I'm programming in Java. What can i use to connect my netbeans with my database on localhost?
Only found this code(it uses local db file) for Windows:
try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    String url = "jdbc:odbc:Driver={Microsoft Access Driver " +
        "(*.mdb, *.accdb)};DBQ=C:\\Database\\Northwind 2007.accdb";
    Connection con = DriverManager.getConnection(url);
    System.out.println("Connected!");
    con.close();
} catch (SQLException e) {
    System.out.println("SQL Exception: "+ e.toString());
} catch (ClassNotFoundException cE) {
    System.out.println("Class Not Found Exception: "+cE.toString());
}
Maybe someone know how to modify it for mac environment?
 
     
     
     
    