wood burning stoves 2.0*
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


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: 170
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: 170
Thanks Lasse!!
 
GeeCON Prague 2014
 
subject: JDBC Problem