I am new to the usage of mysql with java. I have the following problem when I am trying connect to the server from java. My code looks like the following:

Class.forName("com.mysql.jdbc.Driver").newInstance ();
Connection conn= DriverManager.getConnection("jdbc:mysql://localhost/test?user=root&password=xxx");

}catch (Exception ex){
System.out.println("SQLException:"+ex.getMessage() );

The .jar file is added in autoexec.bat (mysql-connector-java-3.0.8-stable-bin.jar).
Everything compiles but when I try to execute I get this:

SQLException: com.mysql.jdbc.Driver

I don't know where is the problem. Any help?????? It's very important. Thank you,