Hi Community,
I have some problems retrieving the path location of the user's application data directory.
The common approach which does not work is to execute
path = System.getenv("APPDATA");
The problem is that this code does not work when someone start the process via "Run As". In such a case the %APPDATA% environment variable is not present.
Does someone know a clean way to retrieve the appdata directory location on Java6?