Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

need help to connect with driver

 
eric lee
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When i compile my code, i have error message said
"can not resovle symbol connection,DriverManager"
how can i install driver?
-----------------------------------------------
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con =
DriverManager.getConnection("jdbc dbc:bookbase");
System.out.println("got connection");
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic