In the following code..I am getting no suitable driver..error: please help. I have been wo
Make sure the MySQL Connector/J driver jar file is in your classpath.
You haven't yet load the Driver to your application,try to add Class.forName("com.mysql.jdbc.Driver");
You need to load the driver. There are a few examples in the doc that comes with the connector-j driver from sun's webpage. The following is a snippet of that document.
try {
Class.forName("com.mysql.jdbc.Driver").newInstance();
} catch (Exception ex) {
// handle the error
}
If you want to know more about loading the java jdbc driver look at chapter 6 of the connector-j.pdf that was bundled with your driver download.