Subject Re: [Firebird-Java] Differences between different distributions of jaybird
Author Mark Rotteveel
Almost all JDBC drivers come with different versions for the various Java versions, simply because the various Java version require different JDBC implementations (and unfortunately newer JDBC versions are not simply backwards compatible); there are some drivers that use java-version dependent factories to work around those issues and offer a unified driver (I believe the MySQL Connector/J does that).

And yes there are differences between the various implementations of Jaybird 2.1.6: Jaybird 2.1.6 for Java 6 has (rudimentary) JDBC 4.0 support, while Jaybird 2.1.6 for Java 1.4 and Java 5 has JDBC 3.0 support (could be that 1.4 is just JDBC 2.0+ext, not sure).

If you use Jaybird 2.1.6 for Java 5 on a Java 6 runtime you could get errors because some JDBC 4.0 methods are not implemented. So if you use Java 5(1.5), download the Java 1.5 version of Jaybird, if you use Java 6 (1.6), download the Java 1.6 version of Jaybird. Conversely if you use a Java 6 version on Java 5 you get UnsupportedClassVersionError because the classes are compiled with target Java 6.

Maybe Roman has more information (or corrections) on this.

Mark


> Dear all,
> I checked all the docs I could find (inside the package, on the
> firebird website and the driver's wiki). Sorry if I missed the
> explanation somewhere.
>
> I'm using jaybird 2.1.6 in a mix of JRE 1.5 and JRE 1.6. I recently
> discover that my applications don't run anymore on 1.5 and I suppose
> it's because I'm using the JDK 1.6 version of Jaybird. I get a
> java.lang.UnsupportedClassVersionError on 1.5.
>
> My questions are then:
> - is there any differences between the code sources of the different
> binaries JDK 1.3, JDK 1.4, JDK 1.5, JDK 1.6?
> - if yes, what are they? and what should we be aware when choosing?
> - if no, I suppose then the only difference is to compile with target
> 1.x, then why doing so?
>
> I don't see this kind of distribution often, usually, there is one jar
> for all.
>
> I suppose, the best for me would be to use the Jaybird 2.1.6 for JDK
> 1.5. Anyone confirms that?
--
GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate und Telefonanschluss
für nur 17,95 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02