class.forName报错,请指教
<%final String DBDRIVER = "com.mysql.jdbc.Driver" ;
final String DBURL = "jdbc:mysql://localhost/training" ;
final String DBUSER = "root" ;
final String DBPASSWORD = "root" ;
Connection conn = null ;
System.out.println("DB link");
%>
<%
try
{
Class.forName(DBDRIVER); ;
conn = DriverManager.getConnection(DBURL,DBUSER,DBPASSWORD) ;
String sql = "SELECT id,uid,name,password FROM person" ;
PreparedStatement pstmt = null ;
pstmt =conn.prepareStatement(sql);
ResultSet rs = pstmt.executeQuery() ;
System.out.println("DB query");
%>
用的室MyEclipse,MySql驱动已添加
程序一执行到Class.forName(DBDRIVER); 就跳出,怎么回事啊