Exception; must be caught or declared to be thrown testRunner.runTests(testClassNames); 因此,它表明错误一定在这个类中的testRunner.runTests("test6() - FAILED"));
}
} 我的实际代码如下所示> aClass = Class.forName(te
这是我尝试使用jdk编译的程序。程序中的“satya”指的是我尝试编译的msaccess db文件database.when它显示错误如"MyClass.java:0:error:unreported exception ClassNotFoundException;must be caught or declared to be thrown".Even如果我将程序中的异常从SQLException更改为exception它会编译sucessfully.But抛出异常</em