This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "help " Watch "help " New topic


satyabrat pati

Joined: Mar 26, 2007
Posts: 3
But it is giving compile time error.Writing that the class is not found.Again it also gives error
Connection c = DriverManager.getConnection(DBCONNECTION ,USERNAME,PASSWORD)
^ this point
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

Please don't post a new topic as a reply to an existing one. It makes the discussion very difficult to follow. And please, UseAMeaningfulSubjectLine.

OK. If the compiler is complaining about Connection then yes, you need to import java.sql.Connection.
[ March 28, 2007: Message edited by: Paul Sturrock ]

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
I agree. Here's the link:
subject: help
It's not a secret anymore!