For updating in my .properties
file I am using Apache Commons Configuration's PropertiesConfiguration. But as I am using the code as :
try {
PropertiesConfiguration properties = new PropertiesConfiguration("dao.properties");
} catch (ConfigurationException ex) {
}
I am getting this error:
incompatible types
required: java.lang.Throwable
found: org.apache.commons.configuration.ConfigurationException
What is going wrong here? I am using it first for the first time.
P.S.: Is there any comparatively equivalent or better library available for handling .properties
?