I was wondering if using:
System.getProperty("user.dir"); to get the absolute path of a folder is the best way to go about it? I am looking to pass my application onto other computers and I need a full proof way of getting the 'home' directory so that I can just add onto the path when I need to use other folders by just doing:
String path = System.getProperty("user.dir"); String otherFolder = path + "\\other";
user.diris the current directory. The "absolute path" of aFileobject is obtained bygetAbsolutePath().System.getProperty("user.dir")is not way to get the home directory at all, it is the way to get the current working directory. -1 for causing yourself confusion.