Date: Mon, 17 Nov 2003 17:06:49 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Roberto Nunnari <roberto.nunnari@supsi.ch> Cc: java@freebsd.org Subject: Re: ClassNotFoundException Message-ID: <20031117170649.GB91222@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <3FB8FCBA.4020109@supsi.ch> References: <3FB8FCBA.4020109@supsi.ch>
next in thread | previous in thread | raw e-mail | index | archive | help
--EuxKj2iCbKjpUGkD
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Mon, Nov 17, 2003 at 05:52:10PM +0100, Roberto Nunnari wrote:
> and here's the offending code:
>=20
> 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
--=20
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
--EuxKj2iCbKjpUGkD
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)
iD8DBQE/uQApdtESqEQa7a0RAsUpAJ4oLePoVIYQkaHGGf1MIRnFk62z0QCdGZVl
4uB6JhAWnndOusRQaRDzd5k=
=CFtY
-----END PGP SIGNATURE-----
--EuxKj2iCbKjpUGkD--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031117170649.GB91222>
