Sun's JDBC interfaces changed in java 1.6. 
They added new mandatory methods such as Connection.createStruct() 
that are not present in java 1.5. Compare:

 http://java.sun.com/j2se/1.5.0/docs/api/java/sql/Connection.html
 http://java.sun.com/javase/6/docs/api/java/sql/Connection.html

You either have to compile with java 1.5 or figure out a way to get
java 1.6 to compile against the old JDBC classes - perhaps there is
a seperate jdbc jar file from Sun with the old API. The javac flags 
-source and -target are not useful in this regard.

Once compiled against java 1.5, the resultant jar file can be used 
with java 1.6+.

Going forward, sqlitejdbc might want to support these new JDBC 
methods - even if they're just empty stubs that throw not supported 
exceptions.

--- hplagell <[EMAIL PROTECTED]> wrote:
>  I can't compile jdbc driver v038 on my system. This action produce
> following message :

> src/org/sqlite/Conn.java:9: org.sqlite.Conn is not abstract and does
> not override abstract method
> createStruct(java.lang.String,java.lang.Object[]) in
> java.sql.Connection
> class Conn implements Connection
> ^
> src/org/sqlite/MetaData.java:5: org.sqlite.MetaData is not abstract
> and does not override abstract method
> getFunctionColumns(java.lang.String,java.lang.String,java.lang.String,java.lang.String)
> in java.sql.DatabaseMetaData
> class MetaData implements DatabaseMetaData
> ^
> src/org/sqlite/Stmt.java:8: org.sqlite.Stmt is not abstract and does
> not override abstract method
> updateNClob(java.lang.String,java.io.Reader) in java.sql.ResultSet
> class Stmt extends RS implements Statement, Codes
> ^
> src/org/sqlite/PrepStmt.java:13: org.sqlite.PrepStmt is not abstract
> and does not override abstract method
> updateNClob(java.lang.String,java.io.Reader) in java.sql.ResultSet
> final class PrepStmt extends RS
>       ^
> Note: Some input files use or override a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> 4 errors
> make: *** [build/org/sqlite/Conn.class] Erreur 1




      
____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


--~--~---------~--~----~------------~-------~--~----~
Mailing List: http://groups.google.com/group/sqlitejdbc?hl=en
To unsubscribe, send email to [EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---

Reply via email to