"Cannot load JDBC driver class 'org.gjt.mm.mysql.Driver'" - What do I do ?

Check the following:

  • Is your database driver's JAR file available to the server?
 For example, if you're using Tomcat, the driver should be in the common/lib folder.
 If your database driver is not in the server's common/lib folder, your
 connection pool is unable find it and your application is
 unable to connect to the database.
  • Did you stop and restart the server after you copied the database
 driver's JAR file to the server's common/lib directory? 
 If you did not restart the server, it is unable to load your database driver's JAR file.

For details, see the Connecting to Databases chapter of the "Using NetBeans IDE 5.0" document.

  Applies to: NetBeans 4.0, 4.1, 5.0
  Platforms: All
Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo