Can anyone help me figure out what cause this problem: I am trying to use mysql database and use JDBC to connect to it. But I always get the ClassNotFoundException with the following statement: Class.forName("org.gjt.mm.mysql.Driver").newInstance(); Anyone know the reason? BTW, I am testing this connection in JBuilder 6.0 environment. Thanks a lot.
...and if you're running a Servlet, then the Servlet container will need the MySQL driver JAR as well. Note that you're using an old driver. You might want to update your code and available classes to make use of com.mysql.jdbc.Driver, available in the newest J/Connector download at mysql.com