Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

class not found exception.

 
Lavanya Balaraman
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i trying to give database connection from java to mysql. I set the class path in environment variables. when i am trying to run the application class not found: com.mysq.jdbc.Driver error is coming


 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you adding the jar file containing the MySQL driver to the classpath? It's apparently not being found.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And how are you running the application? That also matters.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic