This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC and the fly likes Class not found exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Class not found exception" Watch "Class not found exception" New topic
Author

Class not found exception

Aashu Arya
Greenhorn

Joined: Aug 18, 2008
Posts: 22
I am getting this exception while loading my driver:

java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver

I have also included the classes12.jar file for the applications class path.

Can anybody help me in this regard?
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3816

Is your URL and the connection String correct?


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30076
    
149

Originally posted by Aashu Arya:
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver

I have also included the classes12.jar file for the applications class path.

These two statements conflict with each other. Can you explain how you added it to the classpath in case there is somewhere else to add it?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Class not found exception
 
Similar Threads
Exception confusion
Catching exception not thrown in try clause
excetion
facing error when working with Remote invocation method
Overriding a method that throws an Exception.