Results 1 to 27 of 27

Thread: MySQL Connector/Setup?{resolved}

Threaded View

  1. #1

    Thread Starter
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418

    MySQL Connector/Setup?{resolved}

    Does anyone know how i can properly set up my class path to point to the mysql connector drivers? I unzipped the mysql-connector-java-3.0.14-production directory and put it in the C:\j2sdk1.4.1_05 directory. "The docs say "Once you have un-archived the distribution archive, you can install the driver in one of two ways: Either copy the "com" and "org" subdirectories and all of their contents to anywhere you like, and put the directory holding the "com" and "org" subdirectories in your classpath or..........

    My classs path is @SET CLASSPATH= C:\j2sdk1.4.1_05\mysql-connector-java-3.0.14-production

    Now when i run this a ClassNotFoundException is thrown.
    Code:
    import java.sql.*; 
    
      public class SQL{
        public static void main(String[] agrs){  
    
        try{  
        Class.forName("j2sdk1.4.1_05.mysql-connector-java-3.0.14-production");
        }catch(ClassNotFoundException e){
          System.out.println(e);
       }
      }
     }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width