0

I have to make a LAN-based app, but I'm having trouble with connecting my database to my Java project. When I tried this

public static void databaseCon(String connection) {
    try{
        Class.forName("net.ucanaccess.jdbc.UcanaccessDriver");
        dbConn = DriverManager.getConnection("jdbc:ucanaccess:\\\\KIM-PC\\share\\FPAS.accdb");            
    }
        catch(SQLException e){
            JOptionPane.showMessageDialog(null,e);
    }
}

the error message that I'm getting is

no suitable driver found for...

What should I do?

Gord Thompson
  • 116,920
  • 32
  • 215
  • 418
bloomindindin
  • 85
  • 1
  • 6

0 Answers0