Connector/J installation
Posted by: Jim Blight
Date: January 18, 2018 12:18AM

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?)

Options: ReplyQuote

Written By
Connector/J installation
January 18, 2018 12:18AM
January 18, 2018 05:33AM

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.