[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mysql-java
Subject:    Re: Trouble recompiling mm.mysql-2.0.12
From:       Dirk Hillbrecht <dh () chitec ! de>
Date:       2002-04-11 10:15:49
[Download RAW message or body]

Hi all,

Alec.Cawley@Quantel.Com wrote:

>[...] But the source does not compile -
>see errors below. Am I missing something? Sun J2SDK1.4.0 on Win2K. Jikes
>1.14 gives even more errors (75 for one file).
>
>     [javac] N:\Quentin\org\gjt\mm\mysql\xa\XAConnectionImpl.java:57: cannot
>resolve symbol
>    [javac] symbol  : class RollbackException
>    [javac] location: package transaction
>    [javac] import javax.transaction.RollbackException;
>    [javac]                          ^
>    [javac] N:\Quentin\org\gjt\mm\mysql\jdbc1\Connection.java:58:
>org.gjt.mm.mysql.jdbc1.Connection should be declared abstract; it does not
>define createStatement(int,int) in org.gjt.mm.mysql.jdbc1.Connection
>    [javac] public class Connection
>    [javac]        ^
>
[...]

>     [javac] N:\Quentin\org\gjt\mm\mysql\jdbc2\Blob.java:57:
>org.gjt.mm.mysql.jdbc2.Blob should be declared abstract; it does not define
>setBytes(long,byte[]) in org.gjt.mm.mysql.jdbc2.Blob
>    [javac] public class Blob implements java.sql.Blob {
>    [javac]        ^
>
As far as I understand, you would have to compile MM.Mysql with 
different Java environments for different subdirectories, as e.g. the 
JDBC-1-parts do only compile with JDBC-1-libraries, and those are only 
part of Java 1.1. Newer Java versions contain JDBC-2 or even JDBC-3, and 
while those are (more or less) API-compatible with earlier versions, 
they are not compatible in the internals. So, the compiler is stumbling 
over incompatible interface definitions, missing declarations, wrong 
parameters and all this sort of things.

I have never compiled the driver myself due to this reason - I was just 
too lazy to figure out. I simply take the precompiled thing and 
repackage it (read: attach signature) to fit my needs.

Perhaps someone can give advise which directory to compile with what? 
There must be a way... ;-)

Best regards,
Dirk



---------------------------------------------------------------------
Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before
posting. To request this thread, e-mail java-thread3592@lists.mysql.com

To unsubscribe, send a message to the address shown in the
List-Unsubscribe header of this message. If you cannot see it,
e-mail java-unsubscribe@lists.mysql.com instead.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic