Ok Todd, So I need to bind to the libraries of both v1.5 and v1.6. I now
have the Ant build defined and getting the warning about the different
I will play and sort this out.
thanks for the assist.
From: Todd Farmer
Sent: Tuesday, May 24, 2011 6:10 PM
To: Kevin Hine
Subject: Re: ConnectorJ 5.1.16 Source does not build on JDK 1.6.0_13
On 5/24/2011 2:47 AM, Kevin Hine wrote:
> I am compiling within the Eclipse IDE.
> “The type CallableStatement must implement the inherited abstract method
> Is there something that I am missing?
Yes, unfortunately. You'll want to take a look at the ant build script
- it has two different compile steps. The first handles the pre-JDBC4
code baseline (which, as noted by the error message above, does not
implement the new-to-JDBC4 methods), and a second uses a Java 6.0+
compiler to handle the JDBC-specific classes. Within C/J itself, the
driver does a check to see if we're running in a JDBC4-enabled JVM or
not, and if so, uses the classes in the com.mysql.jdbc.JDBC4* classes.
In short, use the ant build script to compile C/J (and you will need to
have a both a pre-6.0 and 6.0+ Java compiler).
MySQL Global Support Director