Jython and zxJDBC package

Paul Boddie paul at boddie.net
Mon Sep 2 04:13:59 EDT 2002


billshaw+google at fastmail.fm (William Shaw) wrote in message news:<d76a3954.0208301123.331bdfbf at posting.google.com>...
> Is anyone here using the zxJDBC package as described in "Jython
> Essentials" to access a MySQL database?
> 
> When I try to run the sample program (Example 10-1, p. 164), I receive
> a NoClassDefFoundError: org/gjt/mm/mysql/Statement in
> MySQLDataHandler.  Decompiling MySQLDataHandler reveals an explicit
> reference to org.gjt.mm.mysql.Statement; but this class isn't in the
> Connector/J library.  Am I missing something here?
> 
> I'm using Jython 2.1 and Connector/J 2.0.14.

It looks like MySQLDataHandler wants to use the MM.MySQL package,
which can be found here:

  http://sourceforge.net/projects/mmmysql

Note that I haven't used zxJDBC or Connector/J, whatever that is, but
the above package is a fairly usable JDBC interface to MySQL, in my
experience.

Paul



More information about the Python-list mailing list