
It only look through the files in Extension folder. I don't think JVM search for all folders and files in the jar directory. The driver configuration is available in the connection dialog or through. I have spent hours trying to get this working but at least it's over now. Before you can connect to a DBMS you have to configure the JDBC driver to be used. I had to copy the mysql-connector-java-5.0.3-bin.jar out of the mysql-connector-java-5.0.3 folder and put it in extensions.įor some reason I don't understand it wasn't visible while in its enclosing folder.

My problem differed slightly in that copying the mysql-connector-java-5.0.3 folder (which is the download file) to the /system/library/java/extensions folder wasn't enough.

I had exactly the same problem and was pulling my hair out. profile file as follows:ĬLASSPATH=$CLASSPATH:/System/Library/Java/Extensions/ĬLASSPATH=$CLASSPATH:/System/Library/Frameworks/amework/Versions/1.5.0/Classes/:/Library/Java/Extensions/ The Type 4 designation means that the driver is a pure Java implementation of the MySQL protocol and does not rely on the MySQL client libraries. MySQL Connector/J 5.1 is a JDBC Type 4 driver that is compatible with the JDBC 3.0, JDBC 4.0, JDBC 4.1, and JDBC 4.2 specifications. MySQL Connector/J 8.0 is compatible with all MySQL versions starting with MySQL 5.5. If you are upgrading from a previous version, read the upgrade. MySQL Connector/J is the official JDBC driver for MySQL. "Exception in thread "main" : test/class"Īfter much pain, I set the classpath environment variable manually in the. With either solution, you must manually add the Connector/J location to your Java CLASSPATH.
Mysql connector j version for mac mac osx#
On Mac OSX 10.4, simply putting the connector/j in the /System/Library/Java/Extensions folder was not enough for me.

Download and Install MySQL Connector/J can be installed from pre-compiled packages that can be downloaded from the Connector/J download page. User Comments Posted by Anthony Rossano on Aug6:51pm MySQL Connector/J is free for usage under the terms of the specified licensing and it runs on any operating system that is able to run a Java Virtual Machine.
