java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

Posted by Nitin Garg on Stack Overflow See other posts from Stack Overflow or by Nitin Garg
Published on 2010-04-07T10:10:14Z Indexed on 2010/04/07 10:13 UTC
Read the original article Hit count: 354

Filed under:
|
|

I am trying to connect to mysql database using java on windows7. Inspite of adding the complete url of jdbcdriver jar file in CLASSPATH, java.lang.ClassNotFoundException: com.mysql.jdbc.Driver is thrown. Could anyone tell me what i am missing here?? it works if i add the jar file in project library but i want to do it by CLASSPATH itself. My classpath looks like this- C:\jython2.5.1\javalib\mysql-connector-java-5.1.12-bin.jar

© Stack Overflow or respective owner

Related posts about java

Related posts about mysql