List:General Discussion« Previous MessageNext Message »
From:Paul DuBois Date:June 17 2001 2:23am
Subject:Re: java driver
View as plain text  
At 12:29 PM +0100 6/15/01, Michael Garthwaite wrote:
>I'm new to mysql and relatively new to java. I've downloaded a type 
>4 driver from mm.mysql. I've put the folder containing the driver in 
>my classpath and included the driver in my code as per the 
>instructions as follows:
>
>try{
>     Class.forName("org.gjt.mm.mysql.Driver");
>}

Try changing the call to:

Class.forName ("org.gjt.mm.mysql.Driver").newInstance ();

>
>The problem is that though the code compiles it throws a 
>ClassNotFoundException when I try to run it. For some reason the 
>driver is not found. I'm probably missing something really obvious 
>but can anyone help me with this.
>
>Michael


-- 
Paul DuBois, paul@stripped
Thread
java driverMichael Garthwaite15 Jun
  • Re: java driverPaul DuBois17 Jun