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 JDBC and the fly likes Type 2 dirvers 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 » Databases » JDBC
Bookmark "Type 2 dirvers" Watch "Type 2 dirvers" New topic
Author

Type 2 dirvers

venu venkata vara prasad
Greenhorn

Joined: Jun 25, 2008
Posts: 3
while i am using type2 drivers to connect database it says import oracle.jdbc.driver.*; is not found. what is the problem.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41148
    
  45
Do you have those classes/packages in the classpath?


Ping & DNS - my free Android networking tools app
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3703
    
    5

Sounds like your compile (Eclipse?) does not have access to the JDBC library. You should consult whatever tool your using to compile it and verify the jar exists and is in the class path.


My Blog: Down Home Country Coding with Scott Selikoff
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Type 2 dirvers