MySQL Forums
Forum List  »  Microsoft SQL Server

java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
Posted by: pallavi keskar
Date: March 09, 2010 04:43AM

Hi, I am working on one web project and i put the mysql-connector-java-5.1.12 driver in WEB-INF/lib folder but I am getting error ie "java.lang.ClassNotFoundException: com.mysql.jdbc.Driver". Please help me... My code is

Class.forName("com.mysql.jdbc.Driver");
out.print("driver");
Connection connection = DriverManager.getConnection("jdbc:mysql://ip/user?id=somestringvalue&password=somestringvalue");
out.print("connection");

Options: ReplyQuote


Subject
Written By
Posted
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
March 09, 2010 04:43AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.