wood burning stoves*
The moose likes JDBC 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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
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>(PhysicalConnection.java:363)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:816)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at PReport.createConnection(PanReport.java:73)
at PReport.main(PanReport.java:55)
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: http://aspose.com/file-tools
subject: ClassNotFoudException
Similar Threads
Suggest me an IDE
about eclipse framework
IDE for java
CVS Revision and Date Tag do not work
which ide is best for mac?