I'm a little confused on how to get an absolute path to a file in Java. Right now I'm using Code: String currDir = System.getProperty("user.dir"); obviously this is the wrong thing to use. when I run the code in Eclipse, it churns out a different path, when I run it in Firefox, it churns out yet another different path, and so on. what I am trying to point to is a properties file that contains info such as database username/password, URLs, etc. what is the proper way to do this? how do I get a path that will never change? thank you sirs.