String url="jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=StuM";
String username="sa";
String password="";
Connection conn=null;
Statement stmt=null;
//String driver="com.microsoft.jdbc.sqlserver.SQLServerDriver";
try{
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
}catch(ClassNotFoundException ce){
System.out.println("加载数据库驱动失败");
}
try{
conn=DriverManager.getConnection(url, username, password);
String name=UserNameTextField.getText();
String pwd=PasswordTextField.getText();
就在加载驱动那步失败了,抛出了异常