File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "class not found exception. " Watch "class not found exception. " New topic

class not found exception.

Lavanya Balaraman

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

Joined: Mar 22, 2005
Posts: 42965
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.
I agree. Here's the link:
subject: class not found exception.
jQuery in Action, 3rd edition