I'm trying to use the mm.mysql JDBC drivers on windows NT

I've just downloaded the mysql-connector-java-2.0.14.zip file and extracted
it into my jdk1.2.2/jre/lib/ext folder.

I try to connect with

import java.sql.*;
public class dbconnect
{
 public static void main(String[] args)
 {
    String url = "jdbc:mysql://mydomain.co.uk/mydatabase";
    String username = "****";
    String password = "****";
   // Load database driver if not already loaded
      try
      {
           Class.forName("org.gjt.mm.mysql.Driver").newInstance() ;
           Connection connection = DriverManager.getConnection(url,
username, password);

...

And get the error 'ClassNotFoundException'.

I've tried the class 'com.mysql.jdbc.Driver' as suggested by the
documentation in the .zip file but this gives the same error. I'm obviously
putting the class files in the wrong place - but this is my first crack at
Java so need help.

Thanks in advance,

Lee




---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to