Knowledgebase & Downloads
The knowledgebase provides documentation written by our team. Please select a category or search for answers.
Articles
Java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
If you are getting java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
you need to make sure that JDBC driver for MySQL is in WEB-INF/lib directory of your web application
or in Tomcat's lib directory (common/lib in case of Tomcat 5.5). Restart Tomcat after adding the jar.
You can find latest driver at http://dev.mysql.com/downloads/connector/j/
ClassNotFoundException are common errors in Java hosting environments but in most cases it is giving failure reason very clearly
and providing the Java aplication with needed class or jar containing the class solves the issue.
- © 2016-2024 JVMHost.com All rights are reserved.