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) {
}
}
Exception is found at the line indicated above. Whether language is a valid properties file or not, I catch the same exception on the same line.