[求助]数据库连接问题
我运行下面的这个测试程序,系统弹出一个窗口:类路径引用的归档c:/Documents and Settings/Administrator/桌面/sqljdbc.jar不存在
import java.sql.*;
public class Test
{
public static void main(String args[])
{
try{
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
Connection conn =DriverManager.getConnection("jdbc:microsoft:sqlserver://" +
"localhost:1433;User=sa;Password=;DatabaseName=design");
Statement stmt=conn.createStatement();
String sql="select * from employee";
ResultSet rs = stmt.executeQuery(sql);
while(rs.next()) {
System.out.println("TestName:"+rs.getString("name"));
}
rs.close();
stmt.close();
conn.close();
}
catch(Exception ex)
{
System.err.println(ex.getMessage());
}
}
}
我安装了SQLSERVER2000的jdbc驱动程序,把这3个文件(msbase.jar ,mssqlserver.jar ,msutil.jar)copy到了我的D:\Java\jdk\jre\lib\ext\下面,在系统的环境变量的class_path中添加了路径,应该怎么解决~~!