public class SupplierCalculatorApplet extends JApplet{
...
public void init(){
loadProperties();
...
}
...
private void loadProperties() {
language = "en-us";//getParameter("Language");
prop = new Properties();
try {
URL urlToProps = this.getClass().getResource("config/" + language + ".properties");
prop.load(urlToProps.openStream());//Exception Caught Here
} catch (IOException e) {
}
}
例外情况见上表。 无论是语言是有效的财产档案,我还是同一条线上相同的例外。