L
leo
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
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