MySQL Forums
Forum List  »  Microsoft SQL Server

Re: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
Posted by: Srinivas Marripudi
Date: November 30, 2007 11:56AM

Hi, I also had the same issue whereas my environment was Eclipse 3.2, Tomcat 5.5 & MySQL. The Exception I was confronting was FileNotFoundException. I added the mysql-connector-java-5.0.7-bin.jar to Eclipse project build path but the Exception was still there.

I came across this topic "Configuring MySQL Database and the Data Source" during my search for answers : http://jdj.sys-con.com/read/152270_1.htm

To summarise I copied the MySQL driver JAR file to the server's lib folder. Also I wrote up a file similar to DBTest.xml, as mentioned in the above article. Copied the file to the configuration dir of the server. It worked for me !

Options: ReplyQuote


Subject
Written By
Posted
Re: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
November 30, 2007 11:56AM


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.