The following table summarizes Connector/J Java dependencies:
|Connector/J version||Java RTE required||JDK required (to build source code)|
|5.1||1.4.x, 1.5.x, 1.6.x||1.6.x and 1.5.x (or older)|
|5.0||1.3.x, 1.4.x, 1.5.x, 1.6.x||1.4.2, 1.5.x, 1.6.x|
|3.1||1.2.x, 1.3.x, 1.4.x, 1.5.x, 1.6.x||1.4.2, 1.5.x, 1.6.x|
|3.0||1.2.x, 1.3.x, 1.4.x, 1.5.x, 1.6.x||1.4.2, 1.5.x, 1.6.x|
MySQL Connector/J does not support JDK-1.1.x or JDK-1.0.x.
Because of the implementation of
java.sql.Savepoint, Connector/J 3.1.0 and
newer will not run on a Java runtime older than 1.4 unless the
class verifier is turned off (by setting the
-Xverify:none option to the Java runtime). This
is because the class verifier will try to load the class
though it is not accessed by the driver unless you actually use
Caching functionality provided by Connector/J 3.1.0 or newer is
also not available on JVMs older than 1.4.x, as it relies on
java.util.LinkedHashMap which was first
available in JDK-1.4.0.
If you are building Connector/J from source code using the source distribution (see Section 22.214.171.124, “Installing from the Development Source Tree”) then you must use JDK 1.4.2 or newer to compile the Connector package. For Connector/J 5.1 you must have both JDK-1.6.x. and JDK-1.5.x installed in order to be able to build the source code.