I am using eclipse and have a project with several packages. The classes work fine calling each and everything seemed fine until i added a properties file to read my configurations.

When I try to read the file it says no file found. I check the path using "getCanonicalPath" and am shocked to see that it is accessing the files in C:\eclipse... which is home to my eclipse. when in fact my project is in E: drive.

I tried adding the properties file folder in my classpath as well but nothing works. Any ideas will be appreciated since i dont want to want to use hardcoded paths like C:\configs.cfg