[SOLVED] Apache Commons Properties file exceptions
I'm having trouble implementing the Apache commons library. All I want to do is read a properties file. I'm using the code:
Code:
Configuration config = new PropertiesConfiguration("setup.properties");
And even thought it's in a try catch block which catches all exceptions, it keeps saying ConfigurationException must be caught or declared to be thrown. So if I wrap it in its own try catch, to catch that exception it says the ConfigurationException is an incompatible type and not throwable.
I've read the user guide for apache commons, but that doesn't help me solve the problem. Regardless if I pass PropertiesConfiguration a string or file...same error.
Any ideas?
Ed