File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes class not found error 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 "class not found error" Watch "class not found error" New topic

class not found error

padma vvvs

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

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

Joined: Mar 22, 2005
Posts: 42965
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.
Srikkanth Mohanasundaram
Ranch Hand

Joined: Feb 07, 2007
Posts: 237
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

Joined: Dec 20, 2006
Posts: 2565


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

So you have to check for:, 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
I agree. Here's the link:
subject: class not found error
It's not a secret anymore!