This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes need help to connect with driver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "need help to connect with driver" Watch "need help to connect with driver" New topic
Author

need help to connect with driver

eric lee
Ranch Hand

Joined: Nov 04, 2002
Posts: 86
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");
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: need help to connect with driver
 
Similar Threads
connection
Java/MySQL connectivity
ResultSet
Connection to MySQL
DSN and DSN less connection