Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

new to JDBC

 
Kudret Serin
Ranch Hand
Posts: 167
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am new to this topic and need some help.

I get always
Fehler bei Treiberjava.lang.ClassNotFoundException: com.mysql.jdbc.Driver
I think my code snippet is not able to find the driver. I've downloaded the mysql-connector-java-3.1.12 from the webpage of mysql, and added into classpath.
Did i download wrong version/driver? What is my mistake? I would like to see how a can i create a connection, sql statements and results etc. (in very simple from)
Thanks for any help
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The code looks OK, but it doesn't find the driver. This is most likely a classpath problem. Maybe you made a typo when adding the jar file to the classpath - examine it closely.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic