7 messages in com.mysql.lists.javaRE: Java 2 with MM Driver
FromSent OnAttachments
Atul Ohri18 Jun 1999 11:39 
Atul Ohri18 Jun 1999 11:39 
Atul Ohri18 Jun 1999 11:39 
Kazys18 Jun 1999 12:41 
Christian Mack18 Jun 1999 12:56 
Atul Ohri18 Jun 1999 13:36 
Christian Mack20 Jun 1999 14:03 
Subject:RE: Java 2 with MM Driver
From:Atul Ohri (ohr@link.law.nyu.edu)
Date:06/18/1999 01:36:11 PM
List:com.mysql.lists.java

===== Original Message From "Christian Mack" <Ma@compal.de> ===== Atul Ohri wrote:

Is it possible to use the MM Driver with Java 1.2? I always seem to get an error stating that X class must be declared abstract. And I also checked the specs for 1.1 and for 1.2 and the MM Driver code seemed to match up with 1.1 only. Is there any way to use MM with 1.2?

Atul Ohri

Hi Atul

Yes you can use the mm JDBC driver (as I do), as long as you don't use the JDBC 2.0 features. Just use the java.sql.* package, without using the driver classes directly.

The mm and the twz drivers are both JDBC 1.1. JDK 1.2 contains JDBC 2.0, so you can't compile these drivers with it.

Tschau Christian

What do you mean by "without using the driver classes directly"? When I installed the MM drivers and downloaded a test program from: http://tecfa.unige.ch/guides/java/staf2x/ex/jdbc/coffee-break/ and configured and ran it, I got over 100 errors stating that this class and that class and so on were not declared abstract. What I then did was checked the specs for certain function (i.e. getTimeStamp) and found that the arguments for the functions in 1.2 were different than the arguments in the identical functions in 1.1 - and MM matched with the 1.1 spec. Obviously, I am mistaken somewhere.

Could somebody possibly send me a code snippet so I could see exactly what was done?

And do you mean that I should I compile my program with Java 1.1's compiler? Or just not use JDBC 2.0 functions in my code and compile with Java 1.2's compiler?