Link to home
Start Free TrialLog in
Avatar of jlguerra
jlguerra

asked on

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

Hi experts,

    I need execute a JSP on Eclipse 3.1 with apache-tomcat-5.5.27,  the MySQL jar is in classpath on windows but when i run the project on eclipse the system launch this error "java.lang.ClassNotFoundException: com.mysql.jdbc.Driver" .   How i do for run my jsp with MySQL?
Avatar of Mick Barry
Mick Barry
Flag of Australia image

you need to add the jar to your eclipse build path

ASKER CERTIFIED SOLUTION
Avatar of jlguerra
jlguerra

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
that will also work (assuming you always use that jre).

be aware that it will break when you upgrade your jre or try and run using a different jre
don't care

I didn't object