Jython and zxJDBC package

Gerhard Häring gerhard.haering at gmx.de
Sat Aug 31 01:45:31 CEST 2002


William Shaw wrote in comp.lang.python:
> 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.

I've got no idea why zxJDBC is hard-wired to a specific database
driver, as your description is suggesting. Anyway, you seem to be
having the "wrong" driver for this hard-wired class name. I remember
having used one with MM in its package name, but it definitely wasn't
Connector/J, which I've never heard of.
-- 
mail:   gerhard <at> bigfoot <dot> de       registered Linux user #64239
web:    http://www.cs.fhm.edu/~ifw00065/    OpenPGP public key id AD24C930
public key fingerprint: 3FCC 8700 3012 0A9E B0C9  3667 814B 9CAA AD24 C930
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))



More information about the Python-list mailing list