D:\JCreatorV3\MyProjects\DisplayAuthors.java:17: unreported exception java.lang.InstantiationException; must be caught or declared to be thrown
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();//加载驱动程序
这是为什么啊 ?
------解决方法--------------------------------------------------------
try{
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
}catch(Exception e){
}