Code:
/**
* Gets the cache location from the home drive.
* if the directory exists, we proceed with loading the client
* else, we create the directory then return to try again.
*/
public static final String findcachedir() {
/** The location of the cache */
final String location = String.format("%s/%s/", System.getProperty("user.home"), "ProjectOS");
final File cacheDirectory = new File(location);
/** does the directory exist? */
if (cacheDirectory.exists()) {
/** it does exist, return the cache location */
return location;
/** The directory didn't exist */
} else {
/** create the cache directory */
cacheDirectory.mkdir();
}
/** after we do that, we return the cache directory being that it has been created. */
return location;
}
Change ProjectOS To the name of your server. This will download to your users home drive (Better than C:/)