I know the title is a bit vague, so let me explain my explanation in more detail:
I have a Java application I want to access the directory of my application on the clients computer, to store text-files.
My problem: How can I find the file/directory of my application on the clients computer in the first place? On different platforms, file directories are different, and the client can put the application on which folder they want.
Is there an easy way to do this?
Thanks
System.getProperty("java.io.tmpdir"). This dir is purged on every restart of the OS, at least for UNIX.%APPDATA%, Mac has~/Library/Application Support/. Linux would typically have a hidden folder in the user's /home/