File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC 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
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
Marshal

Joined: Mar 22, 2005
Posts: 41511
    
  53
How are you adding the jar file containing the MySQL driver to the classpath? It's apparently not being found.


Ping & DNS - my free Android networking tools app
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
And how are you running the application? That also matters.
 
Don't get me started about those stupid light bulbs.
 
subject: class not found exception.