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 class not found error 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 "class not found error" Watch "class not found error" New topic
Author

class not found error

padma vvvs
Greenhorn

Joined: May 07, 2007
Posts: 2
I am getting problem in conncting to database using jdbc.It's throwing " class not found" exception thin driver.I don't know what to install for getting access to all jdbc drivers for using jdbc.
One more thing is that i installed/uninstalled oracle9i many times.While uninstalling i might have deleted some of the files which should not be done.Can you help me in this regard please
regards.

[edited to make subject meaningful - was "hi"]
[ May 07, 2007: Message edited by: Jeanne Boyarsky ]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41170
    
  45
That means that the Oracle JDBC driver is not in your classpath. Consult the Oracle documentation to see where that gets installed. If you inadvertently deleted it, you can probably get it from Oracles web site as well.


Ping & DNS - my free Android networking tools app
Srikkanth Mohanasundaram
Ranch Hand

Joined: Feb 07, 2007
Posts: 185
Did you check if your Driver jar is in your classpath?
Satish SN
Ranch Hand

Joined: Apr 19, 2005
Posts: 70
Hi Padma,
Search for classes12.jar (oracle thin drivers ) file in your system or else try to download one and put the same in the classpath and recompile the java program the reported exception should not come again


Satish SN<br />SCJP 1.4 & SCWCD 1.4
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2491
    
    8

hi,

Oracle initially distributed it's Oracle8 driver library as: classes12.zip.
If you're using Oracle 9i (and JDK >= 1.4), the drivers are distributed as ojdbc14.jar.

So you have to check for: classes12.zip, or classes12.jar, or ojdbc14.jar in your classpath.
Recompile the java program
This is not necessary.

Regards, Jan
[ May 07, 2007: Message edited by: Jan Cumps ]

OCUP UML fundamental and ITIL foundation
youtube channel
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: class not found error
 
Similar Threads
How do you connect to database(sql) from an ejb application
Creating a JDBC connection with SQL Server database using Websphere
JDBC connection to SQL Server from Websphere
Newbie question
problem with classpath