I have just installed Mysql 5 and MySQL Connector/J 5.0. I try to load driver. Here is my code.

VB Code:
  1. import java.sql.*;
  2.  
  3. public class TestMysql
  4. {
  5.   public static void main(String args[]) throws Exception{
  6.       String driver = "com.mysql.jdbc.Driver";      
  7.       Class.forName( driver );      
  8.   }
  9. }

Then i compiled and run. The following message display.

VB Code:
  1. Exception in thread "main" java.lang.ClassNotFoundException: com.mysql.jdbc.Driv
  2. er
  3.         at java.net.URLClassLoader$1.run(Unknown Source)
  4.         at java.security.AccessController.doPrivileged(Native Method)
  5.         at java.net.URLClassLoader.findClass(Unknown Source)
  6.         at java.lang.ClassLoader.loadClass(Unknown Source)
  7.         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
  8.         at java.lang.ClassLoader.loadClass(Unknown Source)
  9.         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
  10.         at java.lang.Class.forName0(Native Method)
  11.         at java.lang.Class.forName(Unknown Source)
  12.         at TestMysql.main(TestMysql.java:7)

What does it mean? I am new to Java and Mysql. Please tell me step by step to connect Java with Mysql.