How do I load a properties file that is in the same package?
I have the following package:
com.company.ldap
In the package I have:
main.java
settings.properties
I want to load the values in the settings.properties file in code, such as:
propertiesFile ="settings.properties";
try{
properties.load(new FileInputStream(new File(propertiesFile)));
}catch (IOException e){
... error logging logic ...
}
I keep returning "The system cannot find the file specified".
How do I properly load a properties file in a class file within the same package?
Thanks,
--Todd

