Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes JDBC and Relational Databases and the fly likes class not found exception. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "class not found exception. " Watch "class not found exception. " New topic
Author

class not found exception.

Lavanya Balaraman
Greenhorn

Joined: Feb 17, 2009
Posts: 10
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

Joined: Mar 22, 2005
Posts: 42954
    
  73
How are you adding the jar file containing the MySQL driver to the classpath? It's apparently not being found.
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
And how are you running the application? That also matters.
 
Have you tried LearnNowOnline? http://www.learnnowonline.com/
 
subject: class not found exception.