jQuery in Action, 2nd edition*
The moose likes IDEs, Version Control and other tools and the fly likes about class not found exception in eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "about class not found exception in eclipse" Watch "about class not found exception in eclipse" New topic
Author

about class not found exception in eclipse

Abhinav Kumar Mishra
Greenhorn

Joined: Jul 25, 2011
Posts: 6
i am working on J2EE project from Eclipse IDE.There is tomcat 6.0 as a web contaier.I have added an servlet-api jar ,jsp-api jar and ojdbc-14.jar as an external jar to library.

this run very fine when i run in eclipse as simple java program!!!

but when i write same code on servlet and try to run as on web server it gives class not found exceptionracle.jdbc.driver.OracleDriver along with many lines.


even i don't get "driver ok " printed.so there is problem something in driver.But how same program runs as a java application and i get database connectivity??I have also added an ojdbc-14.jar to library.

i need to connect to oracle database as a servlet on dynamic request from client in my project.
whats going wrong???
any suggestion to overcome this problem???
Abhinav Kumar Mishra
Greenhorn

Joined: Jul 25, 2011
Posts: 6
I have got solution. We have to keep also the driver ojdbc.jar into the tomcat lib folder.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: about class not found exception in eclipse
 
Similar Threads
java.sql.SQLException: Io exception: The Network Adapter could not establish the conn
DriverManager.getConnection hangs from actionPerformed
Driver problem
Using JDBC to connect oracle
problem occurs when connecting to thin driver...