This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JDBC and the fly likes JDBC Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "JDBC Problem" Watch "JDBC Problem" New topic
Author

JDBC Problem

Nelson Nadal
Ranch Hand

Joined: Jun 06, 2002
Posts: 169
I'm new to JDBC also...
I tried compiling my java program but encountered a problem like this...

Connecting_JDBC.java:15: cannot resolve symbol
symbol : class OracleDriver
location: package jdbc
DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
If I need a driver for this where can I get the driver? Thanks....
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
You need to download the Oracle JDBC driver from otn.oracle.com and include it (the .zip file) in your application's classpath.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Nelson Nadal
Ranch Hand

Joined: Jun 06, 2002
Posts: 169
Thanks Lasse!!
 
 
subject: JDBC Problem
 
Similar Threads
Using Hibernate with MSAccess
Weird number been put to DB table through JDBC
Servlet and JDBC.
getting compile time error
connection url