• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

class not found error

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 243
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you check if your Driver jar is in your classpath?
 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 2662
19
Netbeans IDE C++ Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic