Error creating class: com.mysql.jdbc.Driver

Discussion in 'Java' started by leo, Feb 7, 2005.

  1. leo

    leo Guest

    I'm using netbeans4.0 IDE for a mySQL jbdc application. Within
    netbeans the application works fine, I can connect, read and write to
    the db. However when I run from the jar directly I get "Error creating
    class: com.mysql.jdbc.Driver" when I try to create the driver using
    Class.forName("com.mysql.jdbc.Driver");

    I did put mysql-connector-java-3.1.6-bin.jar in the classpath for
    compiling sources. Also when running from the command line prompt I've
    added the -classpath including the full directory and name of the
    connector jar file. Still doesn't work. What am I doing wrong?


    leo
     
    leo, Feb 7, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Konrad Piersdorfer

    NetBeans and MySQL-JDBC-Driver

    Konrad Piersdorfer, Sep 1, 2003, in forum: Java
    Replies:
    0
    Views:
    823
    Konrad Piersdorfer
    Sep 1, 2003
  2. Betty
    Replies:
    1
    Views:
    9,870
    Juha Laiho
    May 21, 2005
  3. TDOR
    Replies:
    3
    Views:
    1,044
    Scott Ellsworth
    Jul 18, 2005
  4. Bruce
    Replies:
    4
    Views:
    757
    Bjorn Abelli
    Mar 25, 2006
  5. Lew
    Replies:
    0
    Views:
    519
Loading...

Share This Page