JSP and MySQL how to get the two talking

I have a Tomcat install and MySQL installed, now I need to know how install MySQL driver. Where do I need to put the driver and what part of the fiel. I have the mysql-connector-java-3.0.6-stable-bin.jar driver
 My CLASSPATH is already set to
C:\jakarta-tomcat-4.1.18\common\lib\servlet.jar
How can I add on or how should I change it.

Thanx
Joa
quinAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sfotexCommented:
Just make sure the jar is in your class path...

Here is a simple program you can run to make sure you can get to the drivers...

import java.sql.*;

public class test { static public void main (String args[])
 {
   //Connection connection = null;

  try


  {
    //name  
   Class.forName("com.mysql.jdbc.Driver");
   System.out.println("Drivers loaded");
   
  }

 catch(Exception e)

  {
   System.out.println("Drivers not loaded");
   System.out.println(e);
  }
 }
}
0
objectsCommented:
Add the driver jar to:
C:\jakarta-tomcat-4.1.18\common\lib\
0
quinAuthor Commented:
Thanks thats what I was looking for

Joa
0
objectsCommented:
Good to hear, let me know if you have any problems with it.
If not, then please close the q so it can be PAQ'ed.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
objectsCommented:
Thanks :)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.