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 ClassNotFoudException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "ClassNotFoudException" Watch "ClassNotFoudException" New topic


hari vemulapalli

Joined: Mar 17, 2008
Posts: 18

I am using Eclipse. For getting the connection to DataBase I got ClassNotFoundException : oracle:jdbc:driver.OracleDriver. I have jar file here: E:\sqldeveloper\jdbc\lib. Where I Should set the classpath in eclipse. Please suggest me
sammaiah kyatham
Ranch Hand

Joined: Aug 03, 2003
Posts: 104
set your driver jar file in classpath.
Right click on project and select javabuild path and then select libraries tab and then add below:

hari vemulapalli

Joined: Mar 17, 2008
Posts: 18
Hi I am out of ClassNotFoundException . But I am getting the following....
Can you help me....Thanks

Exception in thread "main" java.lang.NoClassDefFoundError: oracle/dms/instrument/ExecutionContextForJDBC
at oracle.jdbc.driver.PhysicalConnection.<init>(
at oracle.jdbc.driver.T4CConnection.<init>(
at oracle.jdbc.driver.T4CDriverExtension.getConnection(
at oracle.jdbc.driver.OracleDriver.connect(
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at PReport.createConnection(
at PReport.main(
hari vemulapalli

Joined: Mar 17, 2008
Posts: 18
I got it...

I changed the classpath location to jdbc/bin that is in oracle
I agree. Here's the link:
subject: ClassNotFoudException
It's not a secret anymore!