Re: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
You want to include the Connector/J .JAR file in the classpath, not PATH:
http://docs.oracle.com/javase/tutorial/essential/environment/paths.html
If you are using an IDE, you'll need to configure the classpath in the project properties. If you are using a command-line interface, include the -classpath argument:
shell> java -classpath C:\path\to\connector-j.jar
or similar.
Subject
Written By
Posted
November 23, 2012 03:58AM
Re: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
November 24, 2012 03:49PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.