This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JDBC and the fly likes Simple jdbc program error Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "Simple jdbc program error" Watch "Simple jdbc program error" New topic
Author

Simple jdbc program error

Arun C. Giridharan
Ranch Hand

Joined: Jul 11, 2010
Posts: 96


error:
Exception in thread "main" java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.cluster.simplejdbcodbc.Simplejdbcodbc.main(Simplejdbcodbc.java:11)
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14685
    
  16

Is the JDBC driver in your classpath ?


[My Blog]
All roads lead to JavaRanch
Arun C. Giridharan
Ranch Hand

Joined: Jul 11, 2010
Posts: 96
Christophe Verré wrote:Is the JDBC driver in your classpath ?


yes!
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

It doesn't look like it is. Are you sure?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Arun C. Giridharan
Ranch Hand

Joined: Jul 11, 2010
Posts: 96
i took the help of Senior person to solve this Problem!!
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14685
    
  16

Arun Giridharan wrote:i took the help of Senior person to solve this Problem!!

How did you solve it ?
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Simple jdbc program error
 
Similar Threads
ClassNotFoundException
unable to run this program
problem with mysql jdbc connection
Reg: Writing Oracle JavaStored Procedures
Java Runtime Error