This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

class not found error

 
padma vvvs
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 242
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you check if your Driver jar is in your classpath?
 
Satish SN
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Jan Cumps
Bartender
Posts: 2584
11
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic