I'm new to MySQL and don't seem to understand Windows like I thought I did:
I'm trying to install the Connector/J driver so my applications can communicate with
my MySQL database:
1) I downloaded the zip file and moved the folder to C:\Program Files (x86)\MySQL
I believe the JAR file is "mysql-connector-java-5.1.45-bin.jar"
2) As per the documentation I set my CLASSPATH to contain
"C:\Program Files (x86)\MySQL\mysql-connector-java-5.1.45\"
3) I tried run some code using the connection example in the documentation.
My response was the exception "ClassNotFoundException: com.mysql.jdbc.Driver".
I must be missing some critical piece of the puzzle. But what?
Does it matter that I'm developing and running from Eclipse?
Would it matter if I didn't use Eclipse (like a standalone app?)
I'm trying to install the Connector/J driver so my applications can communicate with
my MySQL database:
1) I downloaded the zip file and moved the folder to C:\Program Files (x86)\MySQL
I believe the JAR file is "mysql-connector-java-5.1.45-bin.jar"
2) As per the documentation I set my CLASSPATH to contain
"C:\Program Files (x86)\MySQL\mysql-connector-java-5.1.45\"
3) I tried run some code using the connection example in the documentation.
My response was the exception "ClassNotFoundException: com.mysql.jdbc.Driver".
I must be missing some critical piece of the puzzle. But what?
Does it matter that I'm developing and running from Eclipse?
Would it matter if I didn't use Eclipse (like a standalone app?)