ClassNotFoundException
Matthew Seaman
m.seaman at infracaninophile.co.uk
Mon Nov 17 09:06:56 PST 2003
On Mon, Nov 17, 2003 at 05:52:10PM +0100, Roberto Nunnari wrote:
> and here's the offending code:
>
> try {
> Class.forName( "org.gjt.mm.mysql.Driver" );
> }
> catch( ClassNotFoundException e ) {
> e.printStackTrace();
> }
Hmmm... Try:
Class.forName("com.mysql.jdbc.Driver").newInstance();
The org.gjt.mm.mysql hierarchy is just there for backwards
compatibility nowadays. More detailed instructions can be found in
/usr/local/share/doc/mysql-connector-java/README (or you can extract
that README file from the .jar if necessary).
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks
Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614 Bucks., SL7 1TH UK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-java/attachments/20031117/6f6c103a/attachment.bin
More information about the freebsd-java
mailing list