ClassNotFoundException...
I have been working for hours trying to get rid of this error:
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
And yes, I do have the build path configured in my IDE (eclipse), I also have copied the connector.jar file into just about every conceivable folder in my project. At a complete loss here.. Please note, Im trying to write to the database from a servlet. Anyone know whats goin' down?
The code that generates the error is below, if you need further code samples I'll be more than happy to post 'em:
Code:
String dbName = "testdb";
String url = "jdbc:mysql://localhost:3306/";
String username = "...";
String password = "...";
Connection con = null;
String driver = "com.mysql.jdbc.Driver";
Class.forName(driver).newInstance();