Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

843854Apr 1 2005 — edited Mar 25 2006
Hi,

I am a newbie into Tomcat-Linux-MySQL area... I basically am running a Tomcat 5.0.28 on my Redhat linux WS server with JDK 1.4 and MYSql 3.23

Whenever I try to access the JSP page http://localhost:8080/test1.jsp, I get this error :
"java.lang.ClassNotFoundException: com.mysql.jdbc.Driver"

I wrote a small java program : as shown in the link http://www.cs.wcupa.edu/~rkline/Linux/mysql-java.html

This java program is able to connect to the mysql database, but when I run the JSP, I get this error....

I am not so much familiar with database connectivity... Can someone please help me out?

Thanks,
Manudath
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 22 2006
Added on Apr 1 2005
18 comments
1,364 views