samedi 31 janvier 2015

Cannot find symbol using DriverManager.getConnection()


Vote count:

0




I have this code below, where I use DriveManager to manage my database driver.



public static void main(String[] args)throws SQLException {
Connection con = new DriverManager.getConnection("jdbc:hsqldb:hsql://localhost/first-example","SA","");
}


But Im having an error with .getConnection(), the error is:


Cannot find symbol


symbol: class getConnection


class: DriveManager



asked 34 secs ago

Marby

142






Cannot find symbol using DriverManager.getConnection()

Aucun commentaire:

Enregistrer un commentaire